Thursday, January 16, 2025
1 change · saas-17.2
Resolved issues and error corrections
Duplicating an eLearning course now preserves the original order of its slides and sections. This prevents copied courses from appearing rearranged, saving users from manually fixing course structure after duplication.
Original PR description
Steps to reproduce: 1. In elearning get a current course or create a new one. 2. Add or just reorder some of the slides/sections. 3. Duplicate the course. After the changes applied to improve the batch call of copy in https://github.com/odoo/odoo/commit/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(). opw-4240873