*** This bug is a duplicate of bug 869936 ***
https://bugs.launchpad.net/bugs/869936
PS: The above one is not tested yet just a work around !
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
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
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp