diff options
| author | Jérémy Hennecart <jeh@odoo.com> | 2021-01-22 13:02:55 +0000 |
|---|---|---|
| committer | Jérémy Hennecart <jeh@odoo.com> | 2021-01-25 08:41:10 +0000 |
| commit | 13364672745e66563646d47aaecac59460cbf89a (patch) | |
| tree | f89d3b67f642b0c2f2122777f42852f4c642dc2c /addons/mass_mailing | |
| parent | 4da6df09a4df195ad7c0caa7de7fbc7389339958 (diff) | |
[FIX] mass_mailing: adapt the year in the footer theme
Replace the hardcoded year in the footer by the year dynamicaly
fetch from the current date.
task-2431308
closes odoo/odoo#64677
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mass_mailing')
| -rw-r--r-- | addons/mass_mailing/i18n/mass_mailing.pot | 12 | ||||
| -rw-r--r-- | addons/mass_mailing/views/snippets_themes.xml | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/addons/mass_mailing/i18n/mass_mailing.pot b/addons/mass_mailing/i18n/mass_mailing.pot index 24ddf9c5a5f..d98f52d4617 100644 --- a/addons/mass_mailing/i18n/mass_mailing.pot +++ b/addons/mass_mailing/i18n/mass_mailing.pot @@ -173,7 +173,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:mass_mailing.s_mail_block_footer_social_left msgid "" "<span class=\"fa fa-copyright\" role=\"img\" aria-label=\"Copyright\" " -"title=\"Copyright\"/> 2016 All Rights Reserved" +"title=\"Copyright\"/>" msgstr "" #. module: mass_mailing @@ -257,7 +257,8 @@ msgstr "" #. module: mass_mailing #: model:ir.model.constraint,message:mass_mailing.constraint_mailing_contact_list_rel_unique_contact_list -msgid "A mailing contact cannot subscribe to the same mailing list multiple times." +msgid "" +"A mailing contact cannot subscribe to the same mailing list multiple times." msgstr "" #. module: mass_mailing @@ -313,6 +314,12 @@ msgid "Activity Type Icon" msgstr "" #. module: mass_mailing +#: model_terms:ir.ui.view,arch_db:mass_mailing.s_mail_block_footer_social +#: model_terms:ir.ui.view,arch_db:mass_mailing.s_mail_block_footer_social_left +msgid "All Rights Reserved" +msgstr "" + +#. module: mass_mailing #: model:ir.model.fields,field_description:mass_mailing.field_mailing_mailing__unique_ab_testing msgid "Allow A/B Testing" msgstr "" @@ -1683,6 +1690,7 @@ msgid "Messages" msgstr "" #. module: mass_mailing +#: model:mailing.mailing,sms_subject:mass_mailing.mass_mail_1 #: model:mailing.mailing,subject:mass_mailing.mass_mail_1 msgid "Monthly Newsletter" msgstr "" diff --git a/addons/mass_mailing/views/snippets_themes.xml b/addons/mass_mailing/views/snippets_themes.xml index 00933d63cae..a8702496a57 100644 --- a/addons/mass_mailing/views/snippets_themes.xml +++ b/addons/mass_mailing/views/snippets_themes.xml @@ -762,7 +762,7 @@ </tr> <tr> <td> - <p class="o_mail_footer_copy"><span class="fa fa-copyright" role="img" aria-label="Copyright" title="Copyright"/> 2016 All Rights Reserved</p> + <p class="o_mail_footer_copy"><span class="fa fa-copyright" role="img" aria-label="Copyright" title="Copyright"/> <t t-esc="datetime.datetime.now().year"/> All Rights Reserved</p> </td> </tr> </tbody> @@ -785,7 +785,7 @@ <a role="button" href="/unsubscribe_from_list" class="btn btn-link">Unsubscribe</a> </div> <div> - <p class="o_mail_footer_copy"><span class="fa fa-copyright" role="img" aria-label="Copyright" title="Copyright"/> 2016 All Rights Reserved</p> + <p class="o_mail_footer_copy"><span class="fa fa-copyright" role="img" aria-label="Copyright" title="Copyright"/> <t t-esc="datetime.datetime.now().year"/> All Rights Reserved</p> </div> </td> <td class="o_mail_footer_social"> |
