summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2008-12-18 15:39:05 +0100
committerStephane Wirtel <stephane@tinyerp.com>2008-12-18 15:39:05 +0100
commit4043a46f65de2e3c8d56116c02a4df82b4c8403f (patch)
tree3166cb647391f8dafa6a2c34ba2ff783c277b6ed
parent6875763f601a0ddc092362e6ef9587a45020471c (diff)
[FIX] Check if account_id if present
lp bug: https://launchpad.net/bugs/309337 fixed bzr revid: stephane@tinyerp.com-20081218143905-uwv9umr7mss0dlb9
-rw-r--r--addons/account/account_move_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index 233eaf84de4..f32d150906d 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -466,7 +466,7 @@ class account_move_line(osv.osv):
val['account_id'] = id2
elif jt=='purchase':
val['account_id'] = id1
- if val['account_id']:
+ if val.get('account_id', False):
d = self.onchange_account_id(cr, uid, ids, val['account_id'])
val.update(d['value'])
return {'value':val}