odoo/odoo#194055
Created by fw-bot
Merged
at a901eefccf5dabf790736e4c6b2116695c4af510
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:18.0-saas-17.2-opw-4240873-preserve_slides_sequence_when_duplicating-magm-AT-1-fw
- head
- 6e7541c3f948235460f0f16f25c0fbb27200413f
- merged
- 8 months ago by SM Learn, Florian Charlier (flch)
odoo/odoo | |
---|---|
saas-17.2 | #188333 |
saas-17.4 | #194049 |
18.0 | #194055 |
saas-18.1 | #194056 |
saas-18.2 | |
saas-18.3 | |
saas-18.4 | |
19.0 | |
master | #194081 |
[FW][FIX] website_slides: preserve order of slides when duplicating
Steps to reproduce:
- In elearning get a current course or create a new one.
- Add or just reorder some of the slides/sections.
- Duplicate the course.
After the changes applied to improve the batch call of copy in 4ac2702c31f0e95f33f9ad554e7350bef9dab8bd the values that we get after the copy are ordered by id instead of preserving the original order, so for this case we can make sure to reorder the values and mantain the proper sequence when duplicating inside copy_data().
Forward-Port-Of: #188333