@@ -7,7 +7,7 @@ Mail Layout Force
7
7
!! This file is generated by oca-gen-addon-readme !!
8
8
!! changes will be overwritten. !!
9
9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:c0697d9e6eb2247affb97748c2d6c1c811c3749953856ceda5393a0b406e1f6e
10
+ !! source digest: sha256:bd6e51284d03e0193675b8c1b52c89371a10d014b6f9ea57a29bfd661ac9be33
11
11
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
13
13
.. |badge1 | image :: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -16,11 +16,17 @@ Mail Layout Force
16
16
.. |badge2 | image :: https://img.shields.io/badge/licence-AGPL--3-blue.png
17
17
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
18
:alt: License: AGPL-3
19
- .. |badge3 | image :: https://img.shields.io/badge/github-qrtl%2Fstx--oca-lightgray.png?logo=github
20
- :target: https://github.com/qrtl/stx-oca/tree/15.0/mail_layout_force
21
- :alt: qrtl/stx-oca
22
-
23
- |badge1 | |badge2 | |badge3 |
19
+ .. |badge3 | image :: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
20
+ :target: https://github.com/OCA/social/tree/15.0/mail_layout_force
21
+ :alt: OCA/social
22
+ .. |badge4 | image :: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
+ :target: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_layout_force
24
+ :alt: Translate me on Weblate
25
+ .. |badge5 | image :: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=15.0
27
+ :alt: Try me on Runboat
28
+
29
+ |badge1 | |badge2 | |badge3 | |badge4 | |badge5 |
24
30
25
31
Odoo will add a default email layout on most commercial communications.
26
32
@@ -31,11 +37,14 @@ the company logo, and a small footer saying "Powered by Odoo".
31
37
There are notably two main layouts used in Odoo, and the user can't control when
32
38
they're used, as it's hardcoded into the different applications.
33
39
40
+ * ``mail.message_notification_email ``
34
41
* ``mail.mail_notification_light ``
35
42
* ``mail.mail_notification_paynow ``
36
43
37
44
This module allows to force a specific layout for a given ``email.template ``,
38
- effectively overwritting the one hardcoded by Odoo.
45
+ effectively overwritting the one hardcoded by Odoo. Additionally, it enables
46
+ forcing a custom layout for emails that do not use an existing ``email.template ``
47
+ record (e.g., when sending an email from the chatter).
39
48
40
49
This allows you to fully customize the way Odoo emails are rendered and sent
41
50
to your customers.
@@ -48,9 +57,9 @@ to your customers.
48
57
Configuration
49
58
=============
50
59
51
- # Go to Configuration > Technical > Emails > Templates
52
- # Open the desired ``email.template `` record.
53
- # In Advanced Parameters tab, find the Force Layout field.
60
+ #. Go to Settings > Technical > Emails > Templates
61
+ #. Open the desired ``email.template `` record.
62
+ #. In Advanced Parameters tab, find the Force Layout field.
54
63
55
64
You can leave it empty to use the default email layout (chosen by Odoo).
56
65
You can force a custom email layout of your own.
@@ -64,13 +73,23 @@ You can see how the existing layouts are defined for details or inspiration:
64
73
* ``mail.mail_notification_paynow ``
65
74
* ``mail.mail_notification_borders ``
66
75
76
+ To force a new custom layout for emails that do not use an existing ``email.template ``
77
+ record (e.g., emails sent from the chatter):
78
+
79
+ #. Go to Settings > Technical > User Interface > Views.
80
+ #. Copy the current layout (e.g., mail.message_notification_email) to create a new one, and remove any parts you don’t need.
81
+ #. Open the layout that you want to swap with a substitute. Then, under the Layout Mapping tab:
82
+ * Set ``Substitute Layout `` to the new custom layout you created.
83
+ * Set ``Models `` if you want to apply the replacement only to specific models. If left empty,
84
+ the email layout will be replaced for all models.
85
+
67
86
Bug Tracker
68
87
===========
69
88
70
- Bugs are tracked on `GitHub Issues <https://github.com/qrtl/stx-oca /issues >`_.
89
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/social /issues >`_.
71
90
In case of trouble, please check there if your issue has already been reported.
72
91
If you spotted it first, help us to smash it by providing a detailed and welcomed
73
- `feedback <https://github.com/qrtl/stx-oca /issues/new?body=module:%20mail_layout_force%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
92
+ `feedback <https://github.com/OCA/social /issues/new?body=module:%20mail_layout_force%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
74
93
75
94
Do not contact contributors directly about support or help with technical issues.
76
95
@@ -88,18 +107,32 @@ Contributors
88
107
* `Camptocamp <https://www.camptocamp.com >`_
89
108
90
109
* Iván Todorovich <
[email protected] >
110
+ * `Quartile <https://www.quartile.co >`_
111
+
112
+ * Aung Ko Ko Lin
113
+ * Yoshi Tashiro
91
114
92
115
Maintainers
93
116
~~~~~~~~~~~
94
117
118
+ This module is maintained by the OCA.
119
+
120
+ .. image :: https://odoo-community.org/logo.png
121
+ :alt: Odoo Community Association
122
+ :target: https://odoo-community.org
123
+
124
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
125
+ mission is to support the collaborative development of Odoo features and
126
+ promote its widespread use.
127
+
95
128
.. |maintainer-ivantodorovich | image :: https://github.com/ivantodorovich.png?size=40px
96
129
:target: https://github.com/ivantodorovich
97
130
:alt: ivantodorovich
98
131
99
- Current maintainer:
132
+ Current ` maintainer < https://odoo-community.org/page/maintainer-role >`__ :
100
133
101
134
|maintainer-ivantodorovich |
102
135
103
- This module is part of the `qrtl/stx-oca <https://github.com/qrtl/stx-oca /tree/15.0/mail_layout_force >`_ project on GitHub.
136
+ This module is part of the `OCA/social <https://github.com/OCA/social /tree/15.0/mail_layout_force >`_ project on GitHub.
104
137
105
- You are welcome to contribute.
138
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
0 commit comments