-
- Downloads
[FIX] mail: correctly update new and removed subtypes when updating subscription
Currently, the subtype checked selection is not saved when the user adds and removes subtypes. Indeed either an addition is performed, either a removal but having both is not correctly taken into account when updating an existing subscription. How to reproduce * click on the pencil icon to edit the subscription of the follower; * as an example default "Discussions" will be the only one selected; * check "Notes" and save; * -> this works; * click again on the pencil icon and uncheck "Notes" and check "Activities" then save; * -> this does not work as only removal is performed (Activities is not checked); The problem only occurs when you unchecked subtypes and checked other ones. This commit fixes that behavior by taking into consideration both new subtypes and subtypes to remove. LINKS Task ID-2205643 Task ID-2241688 COM PR #56775 X-Original-Commit odoo/odoo@d16b03663823ea5a8192ef863c9975af0f4b246d closes odoo/odoo#65315 Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by:
Thibault Delavallee <tde@odoo.com> Co-authored-by:
Shahista Pathan <sat@odoo.com>
Showing
- addons/mail/models/mail_followers.py 12 additions, 5 deletionsaddons/mail/models/mail_followers.py
- addons/mail/models/mail_thread.py 1 addition, 1 deletionaddons/mail/models/mail_thread.py
- addons/test_mail/tests/test_mail_followers.py 19 additions, 1 deletionaddons/test_mail/tests/test_mail_followers.py
Loading
Please register or sign in to comment