From 26919430aa34fb66b0f88e83f6e310b5c8a3a9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 15 Jun 2015 01:11:53 +0200 Subject: [PATCH] Add tables params to search_domain issue4798 review15481002 --- product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product.py b/product.py index f51de9686f..9f88a63427 100644 --- a/product.py +++ b/product.py @@ -231,7 +231,7 @@ class Product(ModelSQL, ModelView): yield id_, rec_name, icon @classmethod - def search_domain(cls, domain, active_test=True): + def search_domain(cls, domain, active_test=True, tables=None): def is_leaf(expression): return (isinstance(expression, (list, tuple)) and len(expression) > 2 @@ -252,4 +252,4 @@ class Product(ModelSQL, ModelView): else: return [convert_domain(d) for d in domain] return super(Product, cls).search_domain(convert_domain(domain), - active_test=active_test) + active_test=active_test, tables=tables)