credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #01259
[Bug 903812] Re: [6.1] UserError exception not displayed
*** This bug is a duplicate of bug 869936 ***
https://bugs.launchpad.net/bugs/869936
** This bug has been marked a duplicate of bug 869936
_sql_constraints and _constraints exceptions open an application error window
** Project changed: openobject-client => openobject-server
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/903812
Title:
[6.1] UserError exception not displayed
Status in OpenERP Server:
Incomplete
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/903812/+subscriptions