Merge lp:~openerp-dev/openobject-addons/6.1-opw-579172-han into lp:openobject-addons/6.1

Proposed by Hardik Ansodariya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-579172-han
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
account/ (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-579172-han
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email:

Description of the change


Fixed the issue of journal entry.

When open an existing journal entries and try to update a DEBIT amount. When click on the save icons, an error occur. However, the modification has been saved(From web-client).

With reference of maintenance case: 579172

Kindly review it.


To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :


This bug was qualified as Already Fixed on Trunk (means that it was already fixed and merged in Trunk). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Naresh Soni

Unmerged revisions

6984. By Hardik Ansodariya (OpenERP)

[FIXED] Fixed the issue of onchange when edit a journal item from journal entries(Maintanace Case: 579172)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/'
2--- account/ 2012-08-28 07:48:35 +0000
3+++ account/ 2012-09-14 13:18:31 +0000
4@@ -1369,7 +1369,7 @@
5 balance = 0.0
6 for line in line_ids:
7 if line[2]:
8- balance += (line[2]['debit'] or 0.00)- (line[2]['credit'] or 0.00)
9+ balance += (line[2].get('debit', 0.00)- line[2].get('credit', 0.00))
10 return {'value': {'balance': balance}}
12 def write(self, cr, uid, ids, vals, context=None):