[FIX] Account : Corrected journal check on move line creation
lp bug: https://launchpad.net/bugs/395173 fixed bzr revid: jvo@tinyerp.com-20090707110351-utckzxkw5oe4hepq
This commit is contained in:
parent
e1ea463ff8
commit
57362423c6
|
@ -837,7 +837,7 @@ class account_move_line(osv.osv):
|
|||
if journal.type_control_ids:
|
||||
type = account.user_type
|
||||
for t in journal.type_control_ids:
|
||||
if type==t.code:
|
||||
if type.code == t.code:
|
||||
ok = True
|
||||
break
|
||||
if journal.account_control_ids and not ok:
|
||||
|
|
Loading…
Reference in New Issue