Merge branch 'flectra-prd-visible-issue' into 'master'

[FIX] Products not visible in Main catagory Issue: #45

See merge request flectra-hq/flectra!55
This commit is contained in:
Parthiv Patel 2018-05-03 11:21:56 +00:00
commit 8a29d9a1f6

View File

@ -305,7 +305,7 @@ class WebsiteSale(http.Controller):
if not request.env.user.has_group('website.group_website_publisher') \
and (categs_with_childs or parent_categ_with_childs):
domain += ['|', '&',
domain += ['|', '|',
('public_categ_ids', 'in', categs_with_childs.ids),
('public_categ_ids', 'in', parent_categ_with_childs.ids),
('public_categ_ids', '=', False)]