Skip to content
Snippets Groups Projects

Improve substitution management in ir.actions.report and mail.template

Merged oury.balde requested to merge topic/17.0/RED-593-FSB into branch/17.0
9 files
+ 379
97
Compare changes
  • Side-by-side
  • Inline
Files
9
  • value_type functionality
    
    - Refactor converter building functionality for improved maintainability.
    
    - Added `substitution_mixin.py` with the new `SubstitutionMixin` abstract model.
    
    - Updated `ir.actions.report` to inherit from `SubstitutionMixin`
    and implement `_get_template` to return `redner_tmpl_id`.
    
    - Updated `mail.template` to inherit from `SubstitutionMixin`,
    replacing its simpler `action_get_substitutions` with the
    mixin's implementation, and added `_get_template`.
+ 32
2
@@ -6,8 +6,8 @@
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-29 20:00+0000\n"
"PO-Revision-Date: 2025-01-29 20:03+0000\n"
"POT-Creation-Date: 2025-03-25 15:22+0000\n"
"PO-Revision-Date: 2025-03-25 15:25+0000\n"
"Last-Translator: Axel PREL <axel.prel@xcg-consulting.fr>\n"
"Language-Team: XCG Consulting\n"
"Language: fr\n"
@@ -332,6 +332,11 @@
msgstr "Nom du modèle Redner"
#. module: redner
#: model:ir.model.fields.selection,name:redner.selection__redner_substitution__value_type__
msgid "Not specified"
msgstr "Non spécifié"
#. module: redner
#: model:ir.model.fields.selection,name:redner.selection__redner_template__source__odoo
msgid "Odoo"
msgstr "Odoo"
@@ -464,8 +469,13 @@
msgstr "Sélectionner"
#. module: redner
#: model:ir.model.fields,field_description:redner.field_redner_substitution__sequence
msgid "Sequence"
msgstr "Séquence"
#. module: redner
#: model_terms:ir.ui.view,arch_db:redner.redner_template_view_form
msgid "Settings"
msgstr "Paramètres"
#. module: redner
@@ -467,8 +477,13 @@
#: model_terms:ir.ui.view,arch_db:redner.redner_template_view_form
msgid "Settings"
msgstr "Paramètres"
#. module: redner
#: model:ir.model.fields.selection,name:redner.selection__redner_substitution__value_type__simple
msgid "Simple"
msgstr "Simple"
#. module: redner
#: model:ir.model.fields,field_description:redner.field_redner_template__slug
msgid "Slug"
msgstr "Slug"
@@ -490,6 +505,16 @@
msgstr "Substitution"
#. module: redner
#: model:ir.model,name:redner.model_substitution_mixin
msgid "Substitution Mixin"
msgstr "Mixin Substitution"
#. module: redner
#: model:ir.model.fields,help:redner.field_redner_substitution__sequence
msgid "Substitution order, children are placed under their parent."
msgstr "Ordre de substitution, les enfants sont placés sous leur parent."
#. module: redner
#: model:ir.model.fields,field_description:redner.field_mail_template__redner_substitution_ids
#: model_terms:ir.ui.view,arch_db:redner.redner_report_view
#: model_terms:ir.ui.view,arch_db:redner.view_email_template_form
@@ -586,6 +611,11 @@
msgstr "Erreur redner : %r"
#. module: redner
#: model:ir.model.fields,field_description:redner.field_redner_substitution__value_type
msgid "Value Type"
msgstr "Type de valeur"
#. module: redner
#: model:ir.model.fields,field_description:redner.field_redner_substitution__keyword
msgid "Variable"
msgstr "Variable"
Loading