minor fix

This commit is contained in:
Camilo Sarmiento 2020-04-28 18:30:53 -05:00
parent b14b7a5b93
commit 70f8c9b1e3
1 changed files with 3 additions and 0 deletions

View File

@ -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