From 5fe9942931f382181f898457d49ec475552a107b Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 14 Nov 2021 03:13:16 +0000 Subject: [PATCH] Automatic Update form OCA2FC Migrator --- README.md | 2 +- base_tier_validation/__manifest__.py | 2 +- .../i18n/base_tier_validation.pot | 11 +++++++++++ base_tier_validation/i18n/es.po | 11 +++++++++++ base_tier_validation/i18n/es_MX.po | 14 +++++++++++++- base_tier_validation/i18n/fr.po | 11 +++++++++++ base_tier_validation/i18n/it.po | 11 +++++++++++ base_tier_validation/i18n/nl_NL.po | 11 +++++++++++ base_tier_validation/i18n/zh_CN.po | 11 +++++++++++ base_tier_validation/models/tier_validation.py | 8 ++++++++ .../templates/tier_validation_templates.xml | 1 + mass_editing/i18n/it.po | 16 ++++++++-------- 12 files changed, 98 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1603959..6fc7617 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ addon | version | summary [multi_step_wizard](multi_step_wizard/) | 2.0.1.0.0| Multi-Steps Wizards [base_technical_features](base_technical_features/) | 2.0.1.1.0| Access to technical features without activating debug mode [base_tier_validation_formula](base_tier_validation_formula/) | 2.0.2.0.1| Formulas for Base tier validation -[base_tier_validation](base_tier_validation/) | 2.0.2.5.1| Implement a validation process based on tiers. +[base_tier_validation](base_tier_validation/) | 2.0.2.6.0| Implement a validation process based on tiers. [base_search_custom_field_filter](base_search_custom_field_filter/) | 2.0.1.0.0| Add custom filters for fields via UI [base_revision](base_revision/) | 2.0.1.0.1| Keep track of revised document [base_export_manager](base_export_manager/) | 2.0.1.0.1| Manage model export profiles diff --git a/base_tier_validation/__manifest__.py b/base_tier_validation/__manifest__.py index 0d5af16..14fd820 100644 --- a/base_tier_validation/__manifest__.py +++ b/base_tier_validation/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Base Tier Validation", "summary": "Implement a validation process based on tiers.", - "version": "2.0.2.5.1", + "version": "2.0.2.6.0", "development_status": "Mature", "maintainers": ["LoisRForgeFlow"], "category": "Tools", diff --git a/base_tier_validation/i18n/base_tier_validation.pot b/base_tier_validation/i18n/base_tier_validation.pot index 8cf7107..8308c15 100644 --- a/base_tier_validation/i18n/base_tier_validation.pot +++ b/base_tier_validation/i18n/base_tier_validation.pot @@ -319,6 +319,17 @@ msgstr "" msgid "New Tier Validation" msgstr "" +#. module: base_tier_validation +#: model:ir.model.fields,field_description:base_tier_validation.field_tier_validation__next_review +msgid "Next Review" +msgstr "" + +#. module: base_tier_validation +#: code:addons/base_tier_validation/models/tier_validation.py:0 +#, python-format +msgid "Next: %s" +msgstr "" + #. module: base_tier_validation #. openerp-web #: code:addons/base_tier_validation/static/src/xml/systray.xml:0 diff --git a/base_tier_validation/i18n/es.po b/base_tier_validation/i18n/es.po index 964f694..e31d893 100644 --- a/base_tier_validation/i18n/es.po +++ b/base_tier_validation/i18n/es.po @@ -338,6 +338,17 @@ msgstr "Necesita validación" msgid "New Tier Validation" msgstr "Nueva Validación de Nivel" +#. module: base_tier_validation +#: model:ir.model.fields,field_description:base_tier_validation.field_tier_validation__next_review +msgid "Next Review" +msgstr "" + +#. module: base_tier_validation +#: code:addons/base_tier_validation/models/tier_validation.py:0 +#, python-format +msgid "Next: %s" +msgstr "" + #. module: base_tier_validation #. openerp-web #: code:addons/base_tier_validation/static/src/xml/systray.xml:0 diff --git a/base_tier_validation/i18n/es_MX.po b/base_tier_validation/i18n/es_MX.po index b36d529..2597d78 100644 --- a/base_tier_validation/i18n/es_MX.po +++ b/base_tier_validation/i18n/es_MX.po @@ -99,7 +99,8 @@ msgstr "{} rechazó una revisión. ({})" #: code:addons/base_tier_validation/models/tier_validation.py:0 #, python-format msgid "A validation process is still open for at least one record." -msgstr "Todavía hay un proceso de validación abierto para al menos un registro." +msgstr "" +"Todavía hay un proceso de validación abierto para al menos un registro." #. module: base_tier_validation #: model:ir.model.fields,field_description:base_tier_validation.field_tier_definition__active @@ -337,6 +338,17 @@ msgstr "Necesita validación" msgid "New Tier Validation" msgstr "Nueva Definición de Nivel" +#. module: base_tier_validation +#: model:ir.model.fields,field_description:base_tier_validation.field_tier_validation__next_review +msgid "Next Review" +msgstr "" + +#. module: base_tier_validation +#: code:addons/base_tier_validation/models/tier_validation.py:0 +#, python-format +msgid "Next: %s" +msgstr "" + #. module: base_tier_validation #. openerp-web #: code:addons/base_tier_validation/static/src/xml/systray.xml:0 diff --git a/base_tier_validation/i18n/fr.po b/base_tier_validation/i18n/fr.po index 27311fd..89348b7 100644 --- a/base_tier_validation/i18n/fr.po +++ b/base_tier_validation/i18n/fr.po @@ -335,6 +335,17 @@ msgstr "Doit être validé" msgid "New Tier Validation" msgstr "Nouvelle validation par un tiers" +#. module: base_tier_validation +#: model:ir.model.fields,field_description:base_tier_validation.field_tier_validation__next_review +msgid "Next Review" +msgstr "" + +#. module: base_tier_validation +#: code:addons/base_tier_validation/models/tier_validation.py:0 +#, python-format +msgid "Next: %s" +msgstr "" + #. module: base_tier_validation #. openerp-web #: code:addons/base_tier_validation/static/src/xml/systray.xml:0 diff --git a/base_tier_validation/i18n/it.po b/base_tier_validation/i18n/it.po index 504ef99..6a67af3 100644 --- a/base_tier_validation/i18n/it.po +++ b/base_tier_validation/i18n/it.po @@ -335,6 +335,17 @@ msgstr "Richiede Approvazione" msgid "New Tier Validation" msgstr "Nuovo Livello Approvazione" +#. module: base_tier_validation +#: model:ir.model.fields,field_description:base_tier_validation.field_tier_validation__next_review +msgid "Next Review" +msgstr "" + +#. module: base_tier_validation +#: code:addons/base_tier_validation/models/tier_validation.py:0 +#, python-format +msgid "Next: %s" +msgstr "" + #. module: base_tier_validation #. openerp-web #: code:addons/base_tier_validation/static/src/xml/systray.xml:0 diff --git a/base_tier_validation/i18n/nl_NL.po b/base_tier_validation/i18n/nl_NL.po index b9c0784..ee08eac 100644 --- a/base_tier_validation/i18n/nl_NL.po +++ b/base_tier_validation/i18n/nl_NL.po @@ -324,6 +324,17 @@ msgstr "Validatie nodig" msgid "New Tier Validation" msgstr "Nieuwe Tier-validatie" +#. module: base_tier_validation +#: model:ir.model.fields,field_description:base_tier_validation.field_tier_validation__next_review +msgid "Next Review" +msgstr "" + +#. module: base_tier_validation +#: code:addons/base_tier_validation/models/tier_validation.py:0 +#, python-format +msgid "Next: %s" +msgstr "" + #. module: base_tier_validation #. openerp-web #: code:addons/base_tier_validation/static/src/xml/systray.xml:0 diff --git a/base_tier_validation/i18n/zh_CN.po b/base_tier_validation/i18n/zh_CN.po index 3375986..3edb7f4 100644 --- a/base_tier_validation/i18n/zh_CN.po +++ b/base_tier_validation/i18n/zh_CN.po @@ -322,6 +322,17 @@ msgstr "需要审批" msgid "New Tier Validation" msgstr "新建多层级审批" +#. module: base_tier_validation +#: model:ir.model.fields,field_description:base_tier_validation.field_tier_validation__next_review +msgid "Next Review" +msgstr "" + +#. module: base_tier_validation +#: code:addons/base_tier_validation/models/tier_validation.py:0 +#, python-format +msgid "Next: %s" +msgstr "" + #. module: base_tier_validation #. openerp-web #: code:addons/base_tier_validation/static/src/xml/systray.xml:0 diff --git a/base_tier_validation/models/tier_validation.py b/base_tier_validation/models/tier_validation.py index 37f90c9..e95c9ad 100644 --- a/base_tier_validation/models/tier_validation.py +++ b/base_tier_validation/models/tier_validation.py @@ -48,6 +48,7 @@ class TierValidation(models.AbstractModel): compute="_compute_can_review", search="_search_can_review" ) has_comment = fields.Boolean(compute="_compute_has_comment") + next_review = fields.Char(compute="_compute_next_review") def _compute_has_comment(self): for rec in self: @@ -140,6 +141,13 @@ class TierValidation(models.AbstractModel): rec.validated = self._calc_reviews_validated(rec.review_ids) rec.rejected = self._calc_reviews_rejected(rec.review_ids) + def _compute_next_review(self): + for rec in self: + review = rec.review_ids.sorted("sequence").filtered( + lambda l: l.status == "pending" + )[:1] + rec.next_review = review and _("Next: %s") % review.name or "" + @api.model def _calc_reviews_validated(self, reviews): """Override for different validation policy.""" diff --git a/base_tier_validation/templates/tier_validation_templates.xml b/base_tier_validation/templates/tier_validation_templates.xml index 9caa5bf..932f613 100644 --- a/base_tier_validation/templates/tier_validation_templates.xml +++ b/base_tier_validation/templates/tier_validation_templates.xml @@ -50,6 +50,7 @@ class="btn-icon btn-danger" icon="fa-thumbs-down" /> +

\n" +"PO-Revision-Date: 2021-11-08 19:35+0000\n" +"Last-Translator: Francesco Foresti \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" "MIME-Version: 1.0\n" @@ -48,14 +48,14 @@ msgid "" "Example :\n" "'many2many_tags', 'selection'" msgstr "" -"Aggiunti il tipo di widget che sarà usato per mostrare il campo nel wizard. " +"Aggiungi il tipo di widget che sarà usato per mostrare il campo nel wizard. " "Esempio:\n" "'many2many_tags', 'selection'" #. module: mass_editing #: model:ir.model.fields,field_description:mass_editing.field_mass_editing__groups_id msgid "Allowed Groups" -msgstr "Gruppi Abilitati" +msgstr "Gruppi Consentiti" #. module: mass_editing #: model:ir.model.fields,help:mass_editing.field_mass_editing_line__apply_domain @@ -152,7 +152,7 @@ msgstr "Modifiche massive" #. module: mass_editing #: model:ir.model,name:mass_editing.model_mass_editing_line msgid "Mass Editing Line" -msgstr "Modifiche massive linea" +msgstr "Riga Modifiche massive" #. module: mass_editing #: model:ir.model.fields,field_description:mass_editing.field_mass_editing__message @@ -189,18 +189,18 @@ msgstr "Descrizione Operazione Avviso" #. module: mass_editing #: model:ir.model.fields,field_description:mass_editing.field_mass_editing_wizard__remaining_item_qty msgid "Remaining Item Qty" -msgstr "Qta Item RImanenti" +msgstr "Qta Elementi Rimanenti" #. module: mass_editing #: code:addons/mass_editing/wizard/mass_editing_wizard.py:0 #, python-format msgid "Remove" -msgstr "RImuovi" +msgstr "Rimuovi" #. module: mass_editing #: model:ir.model.fields,field_description:mass_editing.field_mass_editing_wizard__selected_item_qty msgid "Selected Item Qty" -msgstr "Qty Item Selezionati" +msgstr "Qta Elementi Selezionati" #. module: mass_editing #: model:ir.model.fields,field_description:mass_editing.field_mass_editing_line__sequence