Hardik Ansodariya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-579172-han into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-579172-han/+merge/124414
Hello,
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.
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-579172-han/+merge/124414
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-579172-han.
=== modified file 'account/account.py'
--- account/account.py 2012-08-28 07:48:35 +0000
+++ account/account.py 2012-09-14 13:18:31 +0000
@@ -1369,7 +1369,7 @@
balance = 0.0
for line in line_ids:
if line[2]:
- balance += (line[2]['debit'] or 0.00)- (line[2]['credit'] or 0.00)
+ balance += (line[2].get('debit', 0.00)- line[2].get('credit', 0.00))
return {'value': {'balance': balance}}
def write(self, cr, uid, ids, vals, context=None):
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp