summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-03-02 16:05:57 +0100
committerThibault Delavallée <tde@odoo.com>2018-04-03 17:47:32 +0200
commitee64e8104c63e4dd408d7ffaa5e51ad29b330044 (patch)
treeb3a060e19d6a8267184c48eeaf46bc2cc32af1ae /doc/reference
parent1eba78381d0b8053d6244dbc0025018aa66c7ac1 (diff)
[REF] hr_expense: use new implementation for auto subscription
Expense report has custom code to add people as followers. This code has several issues, notably in some cases it could try to add several times same people, leading to crash and issues. As auto subscription has been cleaned let us clean the code in hr expense. Using _message_auto_subscribe_followers it is now simpler to automatically add follower to expense reports. It is not necessary to add hackish custom code in create and write. One change is done in this commit. Some people are set as follower after record creation and not before. However this was necessary when tracking messages were not correctly triggered or auto subscription done after tracking. As process is now 1/ create 2/ auto subscribe 3/ tracking, messages linked to tracking will be correctly push to recipients automatically added as followers.
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions