diff options
| author | Mayur Maheshwari (OpenERP) <mma@tinyerp.com> | 2012-06-19 11:54:26 +0530 |
|---|---|---|
| committer | Mayur Maheshwari (OpenERP) <mma@tinyerp.com> | 2012-06-19 11:54:26 +0530 |
| commit | 344ddfbdd5fcf2ff6f22a76f5aa405e8ebeee185 (patch) | |
| tree | f5a46afc623237854ac4f53804839c8b282b1fcd /addons | |
| parent | c9c27a2432dca8a23656659b07dbe77382307500 (diff) | |
[FIX]base:fix the issue of KeyError when changes in line of Journal Entry
lp bug: https://launchpad.net/bugs/955910 fixed
bzr revid: mma@tinyerp.com-20120619062426-x5ykv2thycvpvs4l
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account.py b/addons/account/account.py index f0c16d8586c..a441a262003 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1363,7 +1363,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): |
