From cc319c0c0879c95714a0106a75bf7f2adc1d497c Mon Sep 17 00:00:00 2001
From: Cedric Snauwaert <csn@openerp.com>
Date: Fri, 12 Feb 2016 09:58:53 +0100
Subject: [PATCH] [FIX] account: field code does not exist anymore on
 account_account_type

---
 addons/account/models/account_move.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index 3838b6a830ea..ac200f03135a 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -939,7 +939,7 @@ class AccountMoveLine(models.Model):
             if journal.type_control_ids:
                 type = account.user_type_id
                 for t in journal.type_control_ids:
-                    if type.code == t.code:
+                    if type == t:
                         ok = True
                         break
             if journal.account_control_ids and not ok:
-- 
GitLab