summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-01-31 11:05:27 +0100
committerThibault Delavallée <tde@odoo.com>2018-02-20 14:39:02 +0100
commita6e1324873760536a95af98cf882a61a9555f09a (patch)
treedf2b8c273e09b42384707488d0016c934de26061 /addons/web/static/src/js/views/basic/basic_controller.js
parentb6e621717e12c914d862f03f7546de08a5ad4e7c (diff)
[IMP] mail: make assignation email a notification
Current behavior when assigning someone as responsible of a document is to send him an email if he works using emails. Technically it is done when writing on user_id field and based on notification_type field value of the user. This commit changes that behavior to push a notification to the new responsible. It uses the recently-introduced message_notify method allowing to push notification to recipients without being linked to a document. It means people working in Odoo receive a message in their Inbox while people working by email receive an email. Assignation message contains a link to the document meaning it is always possible to go to the document. Notification email uses the new template defined recently. It allow to have a notification email a bit classy. This commit implies that more notifications are created. Indeed previously to this commit no notification were created for partners without user or for users working in Odoo. There is therefore a performance test whose counter increases and a slight increase in query count when installing all modules, about 1K queries on 581K.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions