Add tables params to search_domain
issue4798 review15481002
This commit is contained in:
1 parent
3aff12c86c
commit
26919430aa
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||
Reference in new issue
Block a user