← Back to team overview

credativ team mailing list archive

[Bug 903812] [NEW] [6.1] UserError exception not displayed

 

You have been subscribed to a public bug:

Hello,

In revision 2024 or before of GTK client, UserError are not displayed
anymore.

As an example, here is screen capture of the error defined in accout/account.py @line 1393
    def unlink(self, cr, uid, ids, context=None, check=True):
        if context is None:
            context = {}
        toremove = []
        obj_move_line = self.pool.get('account.move.line')
        for move in self.browse(cr, uid, ids, context=context):
            if move['state'] != 'draft':
                raise osv.except_osv(_('UserError'),   # <---------
                        _('You can not delete a posted journal entry "%s"!') % \
                                move['name'])
            line_ids = map(lambda x: x.id, move.line_id)
            context['journal_id'] = move.journal_id.id
            context['period_id'] = move.period_id.id
            obj_move_line._update_check(cr, uid, line_ids, context)
            obj_move_line.unlink(cr, uid, line_ids, context=context)
            toremove.append(move.id)
        result = super(account_move, self).unlink(cr, uid, toremove, context)
        return result


Regards,
Yannick

** Affects: openobject-server
     Importance: Undecided
         Status: Incomplete

-- 
[6.1] UserError exception not displayed
https://bugs.launchpad.net/bugs/903812
You received this bug notification because you are a member of OpenERP Framework Experts, which is subscribed to OpenERP Server.