Skip to content

Commit

Permalink
[UPD] Add mail.template manager group
Browse files Browse the repository at this point in the history
refs #59370
  • Loading branch information
marielejeune committed May 16, 2022
1 parent a194beb commit ead2d83
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 3 deletions.
3 changes: 2 additions & 1 deletion email_template_configurator/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/mozaik",
"website": "https://github.com/OCA/social",
"depends": [
"mail",
],
"data": [
"security/email_template_placeholder.xml",
"security/mail_template.xml",
"views/email_template_placeholder.xml",
"views/mail_template.xml",
],
Expand Down
112 changes: 112 additions & 0 deletions email_template_configurator/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * email_template_configurator
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-16 14:36+0000\n"
"PO-Revision-Date: 2022-05-16 14:36+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__active
msgid "Active"
msgstr ""

#. module: email_template_configurator
#: model_terms:ir.ui.view,arch_db:email_template_configurator.email_template_form_view
msgid "Configured Placeholders"
msgstr "Champs de fusion prédéfinis"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__create_uid
msgid "Created by"
msgstr "Créé par"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__create_date
msgid "Created on"
msgstr "Créé le"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__display_name
#: model:ir.model.fields,field_description:email_template_configurator.field_mail_template__display_name
msgid "Display Name"
msgstr "Nom à afficher"

#. module: email_template_configurator
#: model:ir.model,name:email_template_configurator.model_email_template_placeholder
msgid "Email Template Placeholder"
msgstr "Paramètre fictif de modèle de courriel"

#. module: email_template_configurator
#: model:ir.model,name:email_template_configurator.model_mail_template
msgid "Email Templates"
msgstr "Modèles d'emails"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__id
#: model:ir.model.fields,field_description:email_template_configurator.field_mail_template__id
msgid "ID"
msgstr ""

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder____last_update
#: model:ir.model.fields,field_description:email_template_configurator.field_mail_template____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__write_date
msgid "Last Updated on"
msgstr "Dernière mise à jour le"

#. module: email_template_configurator
#: model:res.groups,name:email_template_configurator.group_mail_template_manager
msgid "Mail template: manager"
msgstr "Templates de mail: gestionnaire"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__model_id
#: model_terms:ir.ui.view,arch_db:email_template_configurator.email_template_placeholder_search_view
msgid "Model"
msgstr "Modèle"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__name
msgid "Name"
msgstr "Nom"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_email_template_placeholder__placeholder
#: model:ir.model.fields,field_description:email_template_configurator.field_mail_template__placeholder_id
msgid "Placeholder"
msgstr "Paramètre fictif"

#. module: email_template_configurator
#: model:ir.model.fields,field_description:email_template_configurator.field_mail_template__placeholder_value
msgid "Placeholder Value"
msgstr "Valeur du paramètre fictif"

#. module: email_template_configurator
#: model:ir.actions.act_window,name:email_template_configurator.email_template_placeholder_act_window
#: model:ir.ui.menu,name:email_template_configurator.email_template_placeholder_menu
msgid "Template Placeholders"
msgstr ""

#. module: email_template_configurator
#: model:res.groups,name:email_template_configurator.group_email_template_placeholders_manager
msgid "Template Placeholders Manager"
msgstr ""
15 changes: 15 additions & 0 deletions email_template_configurator/security/mail_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>

<record model="res.groups" id="group_mail_template_manager">
<field name="name">Mail template: manager</field>
<field name="category_id" ref="base.module_category_hidden" />
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>

</odoo>
10 changes: 10 additions & 0 deletions email_template_configurator/views/mail_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
name="groups"
>email_template_configurator.group_email_template_placeholders_manager</attribute>
</xpath>
<page name="email_configuration" position="attributes">
<attribute name="groups">
email_template_configurator.group_mail_template_manager
</attribute>
</page>
<page name="advanced_settings" position="attributes">
<attribute name="groups">
email_template_configurator.group_mail_template_manager
</attribute>
</page>
<xpath expr="//page[.//field[@name='model_object_field']]" position="after">
<page name="configured_placeholders" string="Configured Placeholders">
<group>
Expand Down
2 changes: 0 additions & 2 deletions setup/email_template_configurator/setup.cfg

This file was deleted.

0 comments on commit ead2d83

Please sign in to comment.