=== modified file 'account/account_move_line.py' --- old/account/account_move_line.py 2009-04-27 14:49:26 +0000 +++ new/account/account_move_line.py 2009-07-03 13:34:38 +0000 @@ -835,9 +835,8 @@ if ('account_id' in vals): account = account_obj.browse(cr, uid, vals['account_id']) if journal.type_control_ids: - type = account.user_type for t in journal.type_control_ids: - if type==t.code: + if t.code == account.user_type.type.code: ok = True break if journal.account_control_ids and not ok: