Ronald Rubi has proposed merging
lp:~rr.clearcorp/openobject-addons/6.1-ccorp-account into
lp:~clearcorp-drivers/openobject-addons/6.1-ccorp.
Requested reviews:
CLEARCORP drivers (clearcorp-drivers)
For more details, see:
https://code.launchpad.net/~rr.clearcorp/openobject-addons/6.1-ccorp-account/+merge/129042
--
https://code.launchpad.net/~rr.clearcorp/openobject-addons/6.1-ccorp-account/+merge/129042
Your team CLEARCORP development team is subscribed to branch
lp:~clearcorp-drivers/openobject-addons/6.1-ccorp.
=== modified file 'account/account.py'
--- account/account.py 2012-08-28 07:48:35 +0000
+++ account/account.py 2012-10-10 21:03:22 +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 += ('debit' in line[2] and line[2]['debit'] or 0.00) - ('credit' in line[2] and line[2]['credit'] or 0.00)
return {'value': {'balance': balance}}
def write(self, cr, uid, ids, vals, context=None):
_______________________________________________
Mailing list: https://launchpad.net/~clearcorp
Post to : [email protected]
Unsubscribe : https://launchpad.net/~clearcorp
More help : https://help.launchpad.net/ListHelp