minor fix
This commit is contained in:
parent
b14b7a5b93
commit
70f8c9b1e3
|
@ -1807,6 +1807,9 @@ class MainWindow(FrontWindow):
|
|||
('description', 'ilike', '%{:}%'.format(tw)),
|
||||
]
|
||||
domain.append(clause)
|
||||
if self.shop.get('product_categories'):
|
||||
categories_id = [ct['id'] for ct in self.shop['product_categories']]
|
||||
domain.append(('account_category', 'in', categories_id))
|
||||
|
||||
if not domain:
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue