From fa2b28b514eb0cdfb3628587040530bad70e56fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 23 Sep 2008 20:14:13 +0200 Subject: [PATCH] Fix search on ir.model.data for new inherit field for issue394 --- location.py | 1 + product.py | 1 + 2 files changed, 2 insertions(+) diff --git a/location.py b/location.py index 98d624372c..eecdcc7da2 100644 --- a/location.py +++ b/location.py @@ -185,6 +185,7 @@ class OpenProduct(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_product_by_location'), ('module', '=', 'stock'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context) diff --git a/product.py b/product.py index 80e15c7211..be4dd956ea 100644 --- a/product.py +++ b/product.py @@ -363,6 +363,7 @@ class OpenLocation(Wizard): model_data_ids = model_data_obj.search(cursor, user, [ ('fs_id', '=', 'act_location_quantity_tree'), ('module', '=', 'stock'), + ('inherit', '=', False), ], limit=1, context=context) model_data = model_data_obj.browse(cursor, user, model_data_ids[0], context=context)