[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:
Jay (Open ERP) 2009-07-07 16:33:51 +05:30
parent e1ea463ff8
commit 57362423c6
1 changed files with 1 additions and 1 deletions

View File

@ -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: