a3aa45414baaed99a4a986db5979cddde67f13d9
PURPOSE This commit fixes the behavior of archiving and un-archiving slide.channels. SPECS When archiving a slide.channel, you could run into an issue where the associated slide.channel.partners would be marked as "completed" even though the related slides were NOT completed by the user. This happened because when computing the completion, it's searching for slide.slide.partners marked as completed, and then comparing it with the count of slide.slides in the channel, which would always return 0 since all slides are archived when the channel is archived. Marking channels as completed when they should not triggers undesired side-effects (karma increase, completion email sent, ...). Now, when the slide.channel is not active, we don't mark associated slide.channel.partners as completed anymore. The ordering in which we archive channel and slides was also altered, see method docstring of 'slide.channel#toggle_active' for more info. A new test ensures the correct behavior of archiving. LINKS Task 2170708 closes odoo/odoo#61773 X-original-commit: f7795f85ed66fcebaf8a96bf4e550b069fcf1e83 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%