Skip to content
Snippets Groups Projects
Commit 7932fe6a756d authored by adrien.bonamy's avatar adrien.bonamy
Browse files

protect the get substitutions button and sort substitutions by keyword

parent a8874c6c9a77
No related branches found
Tags 11.0.2.8.0
1 merge request!15protect the get substitutions button and sort substitutions by keyword
......@@ -2,6 +2,12 @@
NEWS
====
11.0.2.5.1
==========
* Sort substitutions by keyword to improve readability in redner report.
* Add confirmation on the get substitutions button to protect it from unwanted actions.
11.0.2.5.0
==========
......
......@@ -21,7 +21,7 @@
"name": "Redner",
"summary": """
Allows to generate transactional emails and documents in PDF or HTML format""",
"version": "11.0.2.5.0",
"version": "11.0.2.5.1",
"author": "XCG Consulting",
"category": "Technical",
"depends": ["base", "mail", "converter"],
......
......@@ -6,8 +6,8 @@
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-06-29 15:53+0000\n"
"PO-Revision-Date: 2021-07-08 17:24+0200\n"
"POT-Creation-Date: 2022-04-21 13:09+0000\n"
"PO-Revision-Date: 2022-04-21 15:57+0200\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: fr\n"
......@@ -18,7 +18,7 @@
"X-Generator: Poedit 2.3\n"
#. module: redner
#: code:addons/redner/models/redner_template.py:180
#: code:addons/redner/models/redner_template.py:181
#, python-format
msgid "%s (copy)"
msgstr "%s (copie)"
......@@ -101,7 +101,7 @@
msgstr "Expression"
#. module: redner
#: code:addons/redner/models/redner_template.py:160
#: code:addons/redner/models/redner_template.py:161
#, python-format
msgid "Failed to update render template, %s"
msgstr "Échec de la mise à jour du template redner, %s"
......@@ -195,6 +195,12 @@
msgstr "Est un template redner?"
#. module: redner
#: model:ir.ui.view,arch_db:redner.redner_report_view
#: model:ir.ui.view,arch_db:redner.view_email_template_form
msgid "Keywords will be updated, Continue?"
msgstr "Les mots-clés vont être mis à jour, Continuer?"
#. module: redner
#: code:addons/redner/models/redner_template.py:50
#: model:ir.model.fields,field_description:redner.field_redner_template_language
#, python-format
......
......@@ -24,8 +24,9 @@
<field name="redner_tmpl_id" attrs="{'required': [('report_type', '=', 'redner')]}" />
<field name="redner_multi_in_one" attrs="{'invisible': [('report_type', '!=', 'redner')]}" />
</group>
<button name="action_get_substitutions"
<button confirm="Keywords will be updated, Continue?"
name="action_get_substitutions"
string="Get Substitutions from Rednerd Report"
type="object" colspan="2"/>
<group string="Substitutions">
<field name="substitution_ids" nolabel="1">
......@@ -28,8 +29,8 @@
string="Get Substitutions from Rednerd Report"
type="object" colspan="2"/>
<group string="Substitutions">
<field name="substitution_ids" nolabel="1">
<tree editable="top">
<tree editable="top" default_order="keyword asc">
<field name="keyword"/>
<field name="converter" />
<field name="value"/>
......
......@@ -30,10 +30,11 @@
attrs="{'required': [('is_redner_template', '=', True)]}" />
</group>
<button name="action_get_substitutions" type="object"
<button confirm="Keywords will be updated, Continue?"
name="action_get_substitutions" type="object"
string="Get Substitutions from Rednerd Template"
attrs="{'invisible': [('is_redner_template', '=', False)]}" />
<group string="Substitutions"
attrs="{'invisible': [('is_redner_template', '=', False)]}">
<field name="redner_substitution_ids" nolabel="1">
......@@ -34,10 +35,10 @@
string="Get Substitutions from Rednerd Template"
attrs="{'invisible': [('is_redner_template', '=', False)]}" />
<group string="Substitutions"
attrs="{'invisible': [('is_redner_template', '=', False)]}">
<field name="redner_substitution_ids" nolabel="1">
<tree editable="top">
<tree editable="top" default_order="keyword asc">
<field name="keyword" />
<field name="converter" />
<field name="value" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment