-
- Downloads
[IMP] mail: add computed fields for company emails
Purpose of this commit is to give a way to access to company email and catchall with formatting. Those will be used in various automated emails. Indeed currently several templates use either ``company_id.partner_id.email``, ``company_id.email``, or even don't provide fallback values. With this commit from a company record people will be able to use * a correctly formatted catchall: ``"My Company Name" <catchall_alias@catchall_domain>`` * an email_formatted field like partner email_formatted that is either its partner-related email_formatted value, or formatted catchall if its partner is not correctly configured; Various calls to mail creation are updated accordingly. Task ID 1853147 PR #32243
Showing
- addons/mail/controllers/bus.py 1 addition, 1 deletionaddons/mail/controllers/bus.py
- addons/mail/models/mail_channel.py 1 addition, 1 deletionaddons/mail/models/mail_channel.py
- addons/mail/models/mail_message.py 2 additions, 2 deletionsaddons/mail/models/mail_message.py
- addons/mail/models/res_company.py 19 additions, 4 deletionsaddons/mail/models/res_company.py
- addons/survey/data/mail_template_data.xml 1 addition, 1 deletionaddons/survey/data/mail_template_data.xml
- addons/test_mail/tests/test_mail_channel.py 1 addition, 1 deletionaddons/test_mail/tests/test_mail_channel.py
- addons/website_slides/models/slide_slide.py 1 addition, 1 deletionaddons/website_slides/models/slide_slide.py
Loading
Please register or sign in to comment