Merge lp:~openerp-dev/openobject-addons/trunk-bug-772476-ara into lp:openobject-addons

Proposed by Ashvin Rathod (OpenERP)
Status: Merged
Merged at revision: 4736
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-772476-ara
Merge into: lp:openobject-addons
Diff against target: 17 lines (+3/-2)
1 file modified
account/account_move_line.py (+3/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-772476-ara
Reviewer Review Type Date Requested Status
Mustufa Rangwala (Open ERP) (community) Approve
qdp (OpenERP) Pending
Review via email: mp+61379@code.launchpad.net

Description of the change

Hello,

Fix: account_move_line._update_check - please include move_id.name in error message

Thanks,
ara

To post a comment you must log in.
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_move_line.py'
2--- account/account_move_line.py 2011-04-25 06:11:14 +0000
3+++ account/account_move_line.py 2011-05-18 11:19:27 +0000
4@@ -1198,10 +1198,11 @@
5 def _update_check(self, cr, uid, ids, context=None):
6 done = {}
7 for line in self.browse(cr, uid, ids, context=context):
8+ err_msg = _('Move name (id): ') + line.move_id.name +' ('+ str(line.move_id.id) +')'
9 if line.move_id.state <> 'draft' and (not line.journal_id.entry_posted):
10- 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 !'))
11+ 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)
12 if line.reconcile_id:
13- 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 !'))
14+ 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)
15 t = (line.journal_id.id, line.period_id.id)
16 if t not in done:
17 self._update_journal_check(cr, uid, line.journal_id.id, line.period_id.id, context)

Subscribers

People subscribed via source and target branches

to all changes: