Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-955910-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #955910 in OpenERP Addons: "modifying Journal entry"
  https://bugs.launchpad.net/openobject-addons/+bug/955910

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-955910-mma/+merge/110963

Hello ,

        Account: I have fix the issue of Key Error when changes in line of 
Journal Entry

Thanks,
Mayur
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-955910-mma/+merge/110963
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-955910-mma.
=== modified file 'account/account.py'
--- account/account.py	2012-08-23 14:26:56 +0000
+++ account/account.py	2012-08-24 08:52:41 +0000
@@ -1371,7 +1371,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

Reply via email to