summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorqmo-odoo <qmo@odoo.com>2019-05-13 11:09:31 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-08 08:29:34 +0000
commitb180c66a80ae3ae34716f8524a990c9e9d2c1aa7 (patch)
tree3ec67ec0b6b5b7eef55482ce2e0c793496a00931 /addons/web/static/src/js/views/basic/basic_model.js
parent5f4c7c5afae3a58f1925c3645af0a005d4fa6e1c (diff)
[REF] website_slides: replace slide.category by slide with is_category flag
PURPOSE Like already done for sale order, invoice of survey, purpose of this commit is to remove category model and replace by a flagged line (slide). It allows to easily reorder slides in an embedded list view. SPECIFICATIONS Instead of having a fully fledged slide.category model, slide.slide will serve that purpose with a is_category flag. This will allow to drag and drop slides and sections in the channel form view. This change had an impact on the way slides were added/sorted on the front-end. In fact, whenever a slide is added from the front-end, a resequencing of all the slides in the course has to be triggered. Category of a slide is now a computed field based on the sequence. Order of slides is based on sequence, with categories splitting the slide list based on is_category flag. In this commit tests are added. Some cleaning in tests is also performed to speedup a bit tests (savepointcase) and some cleaning / renaming to ease their understanding. Future commit will add JS necessary to manage slides in the section list view. LINKS TaskID: 1978731 PR: #33255
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions