-
- Downloads
[IMP] mail: make notification layout a real parameter of message post
Purpose of this commit is to add a new parameter to message post that is the layout used when sending notification emails. It will soon replace the context use of custom_layout in some case. It will also allow to control a bit the notification process from the message_post API in more or less planned future mail updates. This commit also slightly changes the way notification process handles deleted or unknown rendering templates. Before this commit any missing custom template was replaced by the base template. A missing base template was leading to a crash. Now it simply logs a warning and avoid crashing.
Showing
- addons/crm/models/crm_lead.py 2 additions, 2 deletionsaddons/crm/models/crm_lead.py
- addons/event/models/event.py 2 additions, 2 deletionsaddons/event/models/event.py
- addons/hr_recruitment/models/hr_recruitment.py 2 additions, 2 deletionsaddons/hr_recruitment/models/hr_recruitment.py
- addons/mail/models/mail_message.py 2 additions, 2 deletionsaddons/mail/models/mail_message.py
- addons/mail/models/mail_thread.py 7 additions, 5 deletionsaddons/mail/models/mail_thread.py
- addons/mail/models/res_partner.py 11 additions, 5 deletionsaddons/mail/models/res_partner.py
- addons/project/models/project.py 2 additions, 2 deletionsaddons/project/models/project.py
- addons/website_event_track/models/event_track.py 2 additions, 2 deletionsaddons/website_event_track/models/event_track.py
Loading
Please register or sign in to comment