openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #06918
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-772476-ara into lp:openobject-addons
Ashvin Rathod (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-772476-ara into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #772476 in OpenERP Addons: "account_move_line._update_check - please include move_id.name in error message"
https://bugs.launchpad.net/openobject-addons/+bug/772476
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-772476-ara/+merge/61379
Hello,
Fix: account_move_line._update_check - please include move_id.name in error message
Thanks,
ara
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-772476-ara/+merge/61379
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-772476-ara.
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2011-04-25 06:11:14 +0000
+++ account/account_move_line.py 2011-05-18 11:19:27 +0000
@@ -1198,10 +1198,11 @@
def _update_check(self, cr, uid, ids, context=None):
done = {}
for line in self.browse(cr, uid, ids, context=context):
+ err_msg = _('Move name (id): ') + line.move_id.name +' ('+ str(line.move_id.id) +')'
if line.move_id.state <> 'draft' and (not line.journal_id.entry_posted):
- raise osv.except_osv(_('Error !'), _('You can not do this modification on a confirmed entry ! Please note that you can just change some non important fields !'))
+ raise osv.except_osv(_('Error !'), _('You can not do this modification on a confirmed entry ! Please note that you can just change some non important fields ! \n%s') % err_msg)
if line.reconcile_id:
- raise osv.except_osv(_('Error !'), _('You can not do this modification on a reconciled entry ! Please note that you can just change some non important fields !'))
+ raise osv.except_osv(_('Error !'), _('You can not do this modification on a reconciled entry ! Please note that you can just change some non important fields ! \n%s') % err_msg)
t = (line.journal_id.id, line.period_id.id)
if t not in done:
self._update_journal_check(cr, uid, line.journal_id.id, line.period_id.id, context)
Follow ups