From c46da89763b94c213eabb1aa37837587c7bb0c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 23 Sep 2008 20:13:32 +0200 Subject: [PATCH] Fix search on ir.model.data for new inherit field for issue394 --- account.py | 1 + line.py | 1 + 2 files changed, 2 insertions(+) diff --git a/account.py b/account.py index cfa695d512..d077412a47 100644 --- a/account.py +++ b/account.py @@ -343,6 +343,7 @@ class OpenChartAccount(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_account_tree2'), ('module', '=', 'analytic_account'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context) diff --git a/line.py b/line.py index a34cc17c83..0f3c2280b1 100644 --- a/line.py +++ b/line.py @@ -117,6 +117,7 @@ class OpenAccount(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_line_form'), ('module', '=', 'analytic_account'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context)