@@ -375,16 +375,16 @@ <h1 class="title">Mail Layout Force</h1>
375375body when sending an email. It usually displays the related document
376376reference, the company logo, and a small footer saying “Powered by
377377Odoo”.</ p >
378- < p > There are notably two main layouts used in Odoo, and the user can’t
378+ < p > There are notably three main layouts used in Odoo, and the user can’t
379379control when they’re used, as it’s hardcoded into the different
380380applications.</ p >
381381< ul class ="simple ">
382- < li > < tt class ="docutils literal "> mail.message_notification_email</ tt > </ li >
382+ < li > < tt class ="docutils literal "> mail.mail_notification_layout</ tt > </ li >
383+ < li > < tt class ="docutils literal "> mail.mail_notification_layout_with_responsible_signature</ tt > </ li >
383384< li > < tt class ="docutils literal "> mail.mail_notification_light</ tt > </ li >
384- < li > < tt class ="docutils literal "> mail.mail_notification_paynow</ tt > </ li >
385385</ ul >
386386< p > This module allows to force a specific layout for a given
387- < tt class ="docutils literal "> email.template</ tt > , effectively overwritting the one hardcoded by Odoo.
387+ < tt class ="docutils literal "> email.template</ tt > , effectively overwriting the one hardcoded by Odoo.
388388Additionally, it enables forcing a custom layout for emails that do not
389389use an existing < tt class ="docutils literal "> email.template</ tt > record (e.g., when sending an email
390390from the chatter).</ p >
@@ -405,29 +405,40 @@ <h1 class="title">Mail Layout Force</h1>
405405</ div >
406406< div class ="section " id ="configuration ">
407407< h1 > < a class ="toc-backref " href ="#toc-entry-1 "> Configuration</ a > </ h1 >
408- < p > # Go to Configuration > Technical > Emails > Templates # Open the
409- desired < tt class ="docutils literal "> email.template</ tt > record. # In Advanced Parameters tab, find
410- the Force Layout field.</ p >
408+ < p > To configure a forced layout for email templates:</ p >
409+ < ol class ="arabic simple ">
410+ < li > Go to < em > Settings > Technical > Email > Templates</ em > </ li >
411+ < li > Open the desired < tt class ="docutils literal "> email.template</ tt > record</ li >
412+ < li > In the < em > Settings</ em > tab, find the < em > Force Layout</ em > field</ li >
413+ </ ol >
411414< p > You can leave it empty to use the default email layout (chosen by Odoo).
412415You can force a custom email layout of your own. You can use the < em > Mail:
413416No-Layout notification template</ em > to prevent Odoo from adding a layout.</ p >
414417< p > To configure a custom layout of your own, some technical knowledge is
415418needed. You can see how the existing layouts are defined for details or
416419inspiration:</ p >
417420< ul class ="simple ">
421+ < li > < tt class ="docutils literal "> mail.mail_notification_layout</ tt > </ li >
422+ < li > < tt class ="docutils literal "> mail.mail_notification_layout_with_responsible_signature</ tt > </ li >
418423< li > < tt class ="docutils literal "> mail.mail_notification_light</ tt > </ li >
419- < li > < tt class ="docutils literal "> mail.mail_notification_paynow</ tt > </ li >
420- < li > < tt class ="docutils literal "> mail.mail_notification_borders</ tt > </ li >
421424</ ul >
422- < p > To force a new custom layout for emails that do not use an existing
423- < tt class ="docutils literal "> email.template</ tt > record (e.g., emails sent from the chatter):</ p >
424- < p > #. Go to Settings > Technical > User Interface > Views. #. Copy the
425- current layout (e.g., mail.message_notification_email) to create a new
426- one, and remove any parts you don’t need. #. Open the layout that you
427- want to swap with a substitute. Then, under the Layout Mapping tab: *
428- Set < tt class ="docutils literal "> Substitute Layout</ tt > to the new custom layout you created. * Set
429- < tt class ="docutils literal "> Models</ tt > if you want to apply the replacement only to specific models.
430- If left empty, the email layout will be replaced for all models.</ p >
425+ < p > To force a custom layout for emails that do not use an existing
426+ < tt class ="docutils literal "> email.template</ tt > record (e.g., emails sent from the chatter), you can
427+ use the Layout Mapping feature:</ p >
428+ < ol class ="arabic simple ">
429+ < li > Go to < em > Settings > Technical > User Interface > Views</ em > </ li >
430+ < li > Copy the current layout (e.g., < tt class ="docutils literal "> mail.message_notification_email</ tt > )
431+ to create a new custom layout, and customize it as needed</ li >
432+ < li > Open the original layout view that you want to replace. Under the
433+ < em > Layout Mapping</ em > tab:< ul >
434+ < li > Click < em > Add a line</ em > </ li >
435+ < li > Set < em > Substitute Layout</ em > to the new custom layout you created</ li >
436+ < li > Set < em > Models</ em > if you want to apply the replacement only to specific
437+ models. If left empty, the email layout will be replaced for all
438+ models</ li >
439+ </ ul >
440+ </ li >
441+ </ ol >
431442</ div >
432443< div class ="section " id ="bug-tracker ">
433444< h1 > < a class ="toc-backref " href ="#toc-entry-2 "> Bug Tracker</ a > </ h1 >
0 commit comments