[FIX] Erron while modifiying the posted journal entry
bzr revid: ado@openerp.com-20120925044439-ebegbc7s9m6x18yp
This commit is contained in:
@@ -1369,7 +1369,7 @@ class account_move(osv.osv):
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user