diff options
| author | XavierDo <xdo@odoo.com> | 2019-03-13 14:54:21 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2019-03-29 15:28:43 +0000 |
| commit | 92e9e84b63a266b39d556c1db1d336373dc8b303 (patch) | |
| tree | d4816ceef8aeb400c2994c0015f62296ae59917d /addons/project/data/project_data.xml | |
| parent | 98b20333d6271fd33d3061937170b770c03ceb70 (diff) | |
[IMP] mail, *: don't track fields at create
*: project, crm, maintenance, helpdesk,
It is useless to track fields during create since they
have no initial value and future tracking message will
show changes on tracked field.
We can log a default creation message instead
(as it is now if there is no mail_create_nolog context key)
This change will implies
- less queries when creating record
- cleaner creation messages
- less occurence of mail_create_nolog ctx key
Removing tracking at create could break the creation subtypes
mechanism (example: following task creation subtype on project)
Instead of using _track_subtype to give a subtype at create,
a new _creation_subtype method can be override. If a creation
subtype is set on a specific modlel, creation messages will be
create by message_post instead of _message_log.
We also need to adapt the message_track_post_template in order to
keep this feature whithout tracking.
Task: #1916916
closes odoo/odoo#31945
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/project/data/project_data.xml')
0 files changed, 0 insertions, 0 deletions
