Skip to content

Commit

Permalink
[FIX] website_slides: syntactically incorrect domain
Browse files Browse the repository at this point in the history
- Go to a course of type 'Documentation', e.g. 'Trees ood and gardens'
- Search for any word

A traceback occurs since the domain is synctactically incorrect.

There is an extra `|` in the domain.

opw-2254210

closes odoo#51617

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
  • Loading branch information
nim-odoo committed May 20, 2020
1 parent c5bd63f commit 2ed2427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_slides/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def channel(self, channel, category=None, tag=None, page=1, slide_type=None, unc

if search:
domain += [
'|', '|', '|',
'|', '|',
('name', 'ilike', search),
('description', 'ilike', search),
('html_content', 'ilike', search)]
Expand Down

0 comments on commit 2ed2427

Please sign in to comment.