Files
odoo_source/addons
Thibault Delavallée 2b9e288e1f [IMP] mail: support email_layout_xmlid on template
RATIONALE

Currently email layout choice is done in code and is not controllable through
any user interface. In this commit we prepare improvements in template
management by allowing to choose the email layout directly from a given
mail template. As number of layouts is going to grow better be able to
choose the right one.

SPECIFICATIONS

Add a field on template to propagate email layout choice directly on
template and propagate it to the composer, then post/notify process.

We can now choose directly on a template which notification layout should be
used in conjunction with this template. Composer model already holds a field
'email_layout_xmlid', used in various places in code to give a specific
layout to use when sending notifications emails e.g. SO email layout. This
can now be specified directly from the template itself. It allows to
customize the look and feel of notifications without having to do it
explicitly in a given code flow.

Computation is coming either from template, either reset. When having a
template with a value set, set it on composer. When removing the template
reset it.

Currently no standard template uses it as this task targets mainly a code
cleaning that began with the composer code cleaning. It targets the near
freeze to have the base code updated once, then functional templates will
make use of it (hopefully).

Note that currently notification layout is still not supported at composer
level for mailings. It is simply ignored when generating outgoing mail
records. This will be improved soon.

Global followup of odoo/odoo#107356 / Task-2088884 (Mail: Use editable
computed stored fields in composer).

Prepares code for Task-3046371 (Mail: Better Language Support in Composer)
see odoo/odoo#106177 .

Task-3186426 (Mail: Support notification layout in template / email composer)

closes odoo/odoo#114462

Related: odoo/upgrade#4404
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-03-07 02:56:46 +01:00
..
2023-03-06 18:52:41 +01:00
2023-02-03 06:06:23 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-07 00:31:13 +01:00
2023-03-06 23:34:49 +01:00
2023-03-06 23:34:49 +01:00
2023-03-01 17:01:17 +01:00
2023-03-05 15:12:56 +01:00
…