summaryrefslogtreecommitdiff
path: root/addons/website_slides/controllers
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-08-07 06:01:35 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-12 15:40:36 +0000
commit5e4f37a1f88b549e02273edb93611e47abdecd61 (patch)
treec68d302cbba4a83d74e1514c717e7a1ea76a9c34 /addons/website_slides/controllers
parent5269d8c27f9f5e7b2d0ab86db6423f6ffa227f40 (diff)
[REF] website_slides: remove index_content field from slide.slide
The 'index_content' field was only filled when uploading from the frontend. That would lead to inconsistent results when creating/updating 'presentation' slides from the slide.slide form view. The field was also not cleaned if the slide content changed. As it's usage was not very clear (only on a 'search', and not very intuitive), we simply removed the field.
Diffstat (limited to 'addons/website_slides/controllers')
-rw-r--r--addons/website_slides/controllers/main.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/website_slides/controllers/main.py b/addons/website_slides/controllers/main.py
index d33867331ab..a3cf6d99c78 100644
--- a/addons/website_slides/controllers/main.py
+++ b/addons/website_slides/controllers/main.py
@@ -359,7 +359,6 @@ class WebsiteSlides(WebsiteProfile):
'|', '|', '|',
('name', 'ilike', search),
('description', 'ilike', search),
- ('index_content', 'ilike', search),
('html_content', 'ilike', search)]
pager_args['search'] = search
else:
@@ -842,7 +841,7 @@ class WebsiteSlides(WebsiteProfile):
def _get_valid_slide_post_values(self):
return ['name', 'url', 'tag_ids', 'slide_type', 'channel_id', 'is_preview',
- 'mime_type', 'datas', 'description', 'image_1920', 'index_content', 'is_published']
+ 'mime_type', 'datas', 'description', 'image_1920', 'is_published']
@http.route(['/slides/tag/search_read'], type='json', auth='user', methods=['POST'], website=True)
def slide_tag_search_read(self, fields, domain):