[REF] mail, various: remove user_signature field from mail.template
RATIONALE Mail template model holds a field telling odoo mail engine to automatically add the current user's signature to the body. Its use depends on the use case * using the template in the composer on a single record: it is displayed in the rendered template in the composer, meaning people could change it. This behavior is interesting as it allows to see the email content; * using the template in the composer in mass mail mode: it is not displayed as only the raw jinja is displayed. It is therefore not obvious that it will be appended to the body of the mail. People could add it manually and have 2 signatures as a result; A mechanism automatically adding a signature to sent emails when posting a message is already implemented and is based on template existence. If a template has been used when posting, no signature is added in sent emails. Otherwise it is automatically added. This behavior should not change. Behavior will therefore be * use a template -> specify signature usage in it manually through jinja; * do not use a template -> signature added in sent emails; SPECIFICATIONS Remove user_signature. Update template body accordingly. In customer oriented templates that are using it and do not already contain it, manually add a call to user.signature within the jinja code. When set to False, just remove its declaration. Quickly clean some signature integration. LINKS Task ID 2089252 Community PR odoo/odoo#39482 Enterprise PR odoo/enterprise#6459 Upgrade PR odoo/upgrate#761 Related: odoo/enterprise#6459 Related: odoo/upgrade#761 Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by:
Michaël Mattiello <mcm@odoo.com> Co-authored-by:
Thibault Delavallée <tde@odoo.com>
Showing
- addons/account/data/mail_template_data.xml 4 additions, 1 deletionaddons/account/data/mail_template_data.xml
- addons/account/data/payment_receipt_data.xml 4 additions, 4 deletionsaddons/account/data/payment_receipt_data.xml
- addons/auth_signup/data/auth_signup_data.xml 10 additions, 8 deletionsaddons/auth_signup/data/auth_signup_data.xml
- addons/calendar/data/mail_data.xml 6 additions, 9 deletionsaddons/calendar/data/mail_data.xml
- addons/digest/data/digest_template_data.xml 0 additions, 1 deletionaddons/digest/data/digest_template_data.xml
- addons/event/data/email_template_data.xml 3 additions, 5 deletionsaddons/event/data/email_template_data.xml
- addons/gamification/data/badge.xml 2 additions, 3 deletionsaddons/gamification/data/badge.xml
- addons/gamification/data/goal_base.xml 6 additions, 7 deletionsaddons/gamification/data/goal_base.xml
- addons/gamification/views/mail_templates.xml 7 additions, 1 deletionaddons/gamification/views/mail_templates.xml
- addons/hr/data/hr_data.xml 0 additions, 1 deletionaddons/hr/data/hr_data.xml
- addons/hr_recruitment/data/hr_recruitment_data.xml 0 additions, 3 deletionsaddons/hr_recruitment/data/hr_recruitment_data.xml
- addons/mail/models/mail_template.py 0 additions, 8 deletionsaddons/mail/models/mail_template.py
- addons/mail/views/mail_template_views.xml 0 additions, 1 deletionaddons/mail/views/mail_template_views.xml
- addons/mail/views/res_partner_views.xml 0 additions, 1 deletionaddons/mail/views/res_partner_views.xml
- addons/mail/wizard/mail_compose_message.py 0 additions, 3 deletionsaddons/mail/wizard/mail_compose_message.py
- addons/portal/data/portal_data.xml 0 additions, 1 deletionaddons/portal/data/portal_data.xml
- addons/project/data/project_mail_template_data.xml 4 additions, 3 deletionsaddons/project/data/project_mail_template_data.xml
- addons/purchase/data/mail_template_data.xml 0 additions, 2 deletionsaddons/purchase/data/mail_template_data.xml
- addons/repair/data/repair_data.xml 4 additions, 1 deletionaddons/repair/data/repair_data.xml
- addons/sale/data/mail_data.xml 0 additions, 2 deletionsaddons/sale/data/mail_data.xml
Loading
Please register or sign in to comment