From 68d51afcfd4296906e842272ff404cb51f397d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 23 Sep 2008 20:14:22 +0200 Subject: [PATCH] Fix search on ir.model.data for new inherit field for issue394 --- line.py | 2 ++ work.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/line.py b/line.py index d314d5d2dd..3664b9938f 100644 --- a/line.py +++ b/line.py @@ -114,6 +114,7 @@ class EnterLines(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_line_form'), ('module', '=', 'timesheet'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context) @@ -204,6 +205,7 @@ class OpenHoursEmployee(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_hours_employee_form'), ('module', '=', 'timesheet'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context) diff --git a/work.py b/work.py index 273d4b0d91..f05a005fc8 100644 --- a/work.py +++ b/work.py @@ -159,6 +159,7 @@ class OpenWork(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_work_tree2'), ('module', '=', 'timesheet'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context) @@ -182,6 +183,7 @@ class OpenWork2(OpenWork): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_work_form2'), ('module', '=', 'timesheet'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context) @@ -218,6 +220,7 @@ class OpenWorkGraph(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_work_form3'), ('module', '=', 'timesheet'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context)