diff options
| author | ryv-odoo <ryv@odoo.com> | 2019-10-11 14:39:25 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-12-02 10:51:02 +0000 |
| commit | 47ff160b422ac317a5cdca19edfba42c4889656d (patch) | |
| tree | 1658c666e1c8a2e1fd895c9a073795d632e38b50 /addons/mail/wizard/__init__.py | |
| parent | 2b4e172c6f686c0c577d4a1b1d99b65b721ed900 (diff) | |
[REF] mail: improve and refactor mail template preview
PURPOSE
Improve mail template preview wizard by improve its views and displaying
more rendered fields. It helps users knowing what will be sent to customers.
SPECIFICATIONS
Rename template model to mail_template_preview to better match the mail
template namespace.
Remove _inherit on mail.template and instead choose fields to compute
and display. Indeed lot of fields are unnecessary or badly computed.
Instead just add fields on the wizard that depends on mail template
and will be computed based on mail_template_id field of wizard.
Improve error management.
LINKS
Task 2085912
PR #38708
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail/wizard/__init__.py')
| -rw-r--r-- | addons/mail/wizard/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/wizard/__init__.py b/addons/mail/wizard/__init__.py index 7e0df4a2d19..ee0fd32ca8a 100644 --- a/addons/mail/wizard/__init__.py +++ b/addons/mail/wizard/__init__.py @@ -5,6 +5,6 @@ from . import invite from . import mail_compose_message from . import mail_resend_cancel from . import mail_resend_message -from . import email_template_preview +from . import mail_template_preview from . import base_module_uninstall from . import base_partner_merge |
