summaryrefslogtreecommitdiff
path: root/addons/project/models
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-11-26 15:01:13 +0000
committerThibault Delavallée <tde@odoo.com>2021-01-19 16:33:20 +0000
commit01254f06e8ea37887e190758cc479a098591ab8e (patch)
tree45ea1cfed547381ebc4f2ff7d0378822ea98feec /addons/project/models
parent1e29d48f5b10deca9ed7b991ea92ffc36f61c725 (diff)
[FW][FIX] mail: fix auto subscribe subtypes computation
This commit contains a followup / rewrite / backport of #34150 : * odoo/odoo@16dd3da * odoo/odoo@0b11ed8 Fix: propagate generic internal subtypes from parent to childs with auto subscribe. With this commit, when the user subscribes to internal subtypes like activities on a parent record (e.g. a project) then the user follows them by default on every sub record creation (e.g. all new tasks of this project). Fix: do not reset existing subtypes when changing parent of a record using auto subscribe mechanism. With this commit, when changing subtype subscription from a parent record (e.g. project) avoid resetting all subtypes subscription on existing sub records (e.g. all new tasks of this project). Only new records will use the parent chosen subtypes. This is done through propagation of followers existing policy (see Follower._insert_followers() for more details); Note that fix done here is slightly different from the one done in odoo/odoo@16dd3da as there was some mismatch with internal model-related subtypes. Thix fix will be forward ported and improve the previous one. Task ID-2205643 COM PR #47336 X-original-commit: odoo/odoo@9e7092a03f6c44287c661e2b39a943d240aa2bde X-original-PR: odoo/odoo#47336 Co-Authored-By: Thibault Delavallee <tde@odoo.com> Co-Authored-By: Alexandre Khun <aku@odoo.com> Co-Authored-By: Priyanka kakadiya <pka@odoo.com>
Diffstat (limited to 'addons/project/models')
0 files changed, 0 insertions, 0 deletions