From 3f135513049329cadc359b1327cadd7c8a32abae Mon Sep 17 00:00:00 2001
From: Mateu Griful
Date: Tue, 20 Jul 2021 12:31:17 +0200
Subject: [PATCH 01/22] [ADD] account_move_tier_validation_approver
---
.../__init__.py | 1 +
.../__manifest__.py | 16 ++++++++
.../models/__init__.py | 4 ++
.../models/account_move.py | 31 ++++++++++++++
.../models/res_company.py | 15 +++++++
.../models/res_config_settings.py | 41 +++++++++++++++++++
.../models/res_partner.py | 10 +++++
.../readme/CONFIGURE.rst | 8 ++++
.../readme/CONTRIBUTORS.rst | 2 +
.../readme/DESCRIPTION.rst | 2 +
.../readme/USAGE.rst | 12 ++++++
.../views/account_move_views.xml | 28 +++++++++++++
.../views/res_config_settings_views.xml | 31 ++++++++++++++
.../views/res_partner_views.xml | 20 +++++++++
14 files changed, 221 insertions(+)
create mode 100644 account_move_tier_validation_approver/__init__.py
create mode 100644 account_move_tier_validation_approver/__manifest__.py
create mode 100644 account_move_tier_validation_approver/models/__init__.py
create mode 100644 account_move_tier_validation_approver/models/account_move.py
create mode 100644 account_move_tier_validation_approver/models/res_company.py
create mode 100644 account_move_tier_validation_approver/models/res_config_settings.py
create mode 100644 account_move_tier_validation_approver/models/res_partner.py
create mode 100644 account_move_tier_validation_approver/readme/CONFIGURE.rst
create mode 100644 account_move_tier_validation_approver/readme/CONTRIBUTORS.rst
create mode 100644 account_move_tier_validation_approver/readme/DESCRIPTION.rst
create mode 100644 account_move_tier_validation_approver/readme/USAGE.rst
create mode 100644 account_move_tier_validation_approver/views/account_move_views.xml
create mode 100644 account_move_tier_validation_approver/views/res_config_settings_views.xml
create mode 100644 account_move_tier_validation_approver/views/res_partner_views.xml
diff --git a/account_move_tier_validation_approver/__init__.py b/account_move_tier_validation_approver/__init__.py
new file mode 100644
index 00000000..0650744f
--- /dev/null
+++ b/account_move_tier_validation_approver/__init__.py
@@ -0,0 +1 @@
+from . import models
diff --git a/account_move_tier_validation_approver/__manifest__.py b/account_move_tier_validation_approver/__manifest__.py
new file mode 100644
index 00000000..4add0d84
--- /dev/null
+++ b/account_move_tier_validation_approver/__manifest__.py
@@ -0,0 +1,16 @@
+# Copyright 2021 ForgeFlow, S.L.
+# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+{
+ "name": "Account Move Tier Validation Approver",
+ "version": "13.0.1.0.0",
+ "author": "ForgeFlow, Odoo Community Association (OCA)",
+ "category": "Accounting",
+ "license": "LGPL-3",
+ "depends": ["account_move_tier_validation"],
+ "data": [
+ "views/account_move_views.xml",
+ "views/res_partner_views.xml",
+ "views/res_config_settings_views.xml",
+ ],
+ "installable": True,
+}
diff --git a/account_move_tier_validation_approver/models/__init__.py b/account_move_tier_validation_approver/models/__init__.py
new file mode 100644
index 00000000..516c5ccb
--- /dev/null
+++ b/account_move_tier_validation_approver/models/__init__.py
@@ -0,0 +1,4 @@
+from . import account_move
+from . import res_partner
+from . import res_config_settings
+from . import res_company
diff --git a/account_move_tier_validation_approver/models/account_move.py b/account_move_tier_validation_approver/models/account_move.py
new file mode 100644
index 00000000..8be9e7ea
--- /dev/null
+++ b/account_move_tier_validation_approver/models/account_move.py
@@ -0,0 +1,31 @@
+# Copyright 2021 ForgeFlow, S.L.
+# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+
+from odoo import _, api, fields, models
+from odoo.exceptions import UserError
+
+
+class AccountMove(models.Model):
+ _inherit = "account.move"
+
+ approver_id = fields.Many2one("res.users", string="Responsible for Approval")
+
+ @api.onchange("partner_id")
+ def _onchange_partner_approver_id(self):
+ if self.partner_id:
+ self.approver_id = self.partner_id.approver_id.id
+
+ def post(self):
+ for move in self:
+ require_approver_in_vendor_bills = (
+ move.company_id.require_approver_in_vendor_bills
+ )
+ if (
+ move.is_purchase_document(include_receipts=True)
+ and require_approver_in_vendor_bills
+ and not move.approver_id
+ ):
+ raise UserError(
+ _("It is mandatory to indicate a Responsible for Approval")
+ )
+ return super(AccountMove, self).post()
diff --git a/account_move_tier_validation_approver/models/res_company.py b/account_move_tier_validation_approver/models/res_company.py
new file mode 100644
index 00000000..a1452d08
--- /dev/null
+++ b/account_move_tier_validation_approver/models/res_company.py
@@ -0,0 +1,15 @@
+# Copyright 2020 ForgeFlow, S.L.
+# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+
+from odoo import fields, models
+
+
+class ResCompany(models.Model):
+ _inherit = "res.company"
+
+ require_approver_in_vendor_bills = fields.Boolean(
+ string="Require approver in vendor bills"
+ )
+ validation_approver_tier_definition_id = fields.Many2one(
+ comodel_name="tier.definition", string="Bill approval tier definition"
+ )
diff --git a/account_move_tier_validation_approver/models/res_config_settings.py b/account_move_tier_validation_approver/models/res_config_settings.py
new file mode 100644
index 00000000..9ffe662f
--- /dev/null
+++ b/account_move_tier_validation_approver/models/res_config_settings.py
@@ -0,0 +1,41 @@
+# Copyright 2020 ForgeFlow, S.L.
+# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+
+from odoo import fields, models
+
+
+class ResConfigSettings(models.TransientModel):
+ _inherit = "res.config.settings"
+
+ require_approver_in_vendor_bills = fields.Boolean(
+ string="Require Approver In Vendor Bills",
+ help="Requires adding an approver before a vendor bill can be posted.",
+ related="company_id.require_approver_in_vendor_bills",
+ readonly=False,
+ )
+
+ def set_values(self):
+ tier_definition = self.company_id.validation_approver_tier_definition_id
+ if not tier_definition:
+ field = self.env["ir.model.fields"].search(
+ [("model", "=", "account.move"), ("name", "=", "approver_id")]
+ )
+ tier_definition = self.env["tier.definition"].create(
+ {
+ "model_id": self.env["ir.model"]
+ .search([("model", "=", "account.move")])
+ .id,
+ "review_type": "field",
+ "name": "Validation with Approver field",
+ "reviewer_field_id": field.id,
+ "definition_domain": "[('type', '=', 'in_invoice')]",
+ "approve_sequence": True,
+ "active": self.require_approver_in_vendor_bills,
+ }
+ )
+ self.company_id.validation_approver_tier_definition_id = tier_definition
+ if self.require_approver_in_vendor_bills:
+ tier_definition.action_unarchive()
+ else:
+ tier_definition.action_archive()
+ return super().set_values()
diff --git a/account_move_tier_validation_approver/models/res_partner.py b/account_move_tier_validation_approver/models/res_partner.py
new file mode 100644
index 00000000..93d37620
--- /dev/null
+++ b/account_move_tier_validation_approver/models/res_partner.py
@@ -0,0 +1,10 @@
+# Copyright 2021 ForgeFlow, S.L.
+# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+
+from odoo import fields, models
+
+
+class Partner(models.Model):
+ _inherit = "res.partner"
+
+ approver_id = fields.Many2one("res.users", string="Approver of Vendor Bills")
diff --git a/account_move_tier_validation_approver/readme/CONFIGURE.rst b/account_move_tier_validation_approver/readme/CONFIGURE.rst
new file mode 100644
index 00000000..4fdbf736
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/CONFIGURE.rst
@@ -0,0 +1,8 @@
+To configure this module, you need to:
+
+#. Go to *Settings > Technical > Tier Validations > Tier Definition*.
+#. Create a new tier or edit an existing one.
+#. Set the "Validated by" field to "Field in related record".
+#. Set the "Reviewer field" to "Responsible for Approval".
+
+A default tier validation called "Validation with Approver field" is set with this configuration.
diff --git a/account_move_tier_validation_approver/readme/CONTRIBUTORS.rst b/account_move_tier_validation_approver/readme/CONTRIBUTORS.rst
new file mode 100644
index 00000000..c32689f4
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/CONTRIBUTORS.rst
@@ -0,0 +1,2 @@
+* Lois Rilo
+* Adrià Gil Sorribes
diff --git a/account_move_tier_validation_approver/readme/DESCRIPTION.rst b/account_move_tier_validation_approver/readme/DESCRIPTION.rst
new file mode 100644
index 00000000..1bbcddab
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/DESCRIPTION.rst
@@ -0,0 +1,2 @@
+This module allows to select a Responsible for approval in the partner form. If a tier definition is set and configured
+with the "Responsible for Approval" field, the approver will be the one chosen in the partner form.
diff --git a/account_move_tier_validation_approver/readme/USAGE.rst b/account_move_tier_validation_approver/readme/USAGE.rst
new file mode 100644
index 00000000..9fa3340d
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/USAGE.rst
@@ -0,0 +1,12 @@
+You can assign a default user for approval associated to a supplier. In the
+partner form view, go to the *Sales and Purchase* tab, and into the *Purchase*
+section, and fill the field *Approver of Vendor Bills*.
+
+When you create a vendor bill the field *Responsible for Approval* will be
+filled in with the partner's default. You can change it if needed.
+
+Be aware that you won't be able to post a vendor bill unless you have indicated
+a Responsible for Approval.
+
+Used in connection with the module *Account Move Tier Validation* you can set
+up approvals specific to a department.
diff --git a/account_move_tier_validation_approver/views/account_move_views.xml b/account_move_tier_validation_approver/views/account_move_views.xml
new file mode 100644
index 00000000..9889b21f
--- /dev/null
+++ b/account_move_tier_validation_approver/views/account_move_views.xml
@@ -0,0 +1,28 @@
+
+
+
+
+ account.move.form
+ account.move
+
+
+
+
+
+
+
+
+ account.move.select - account_move_tier_validation
+ account.move
+
+
+
+
+
+
+
+
diff --git a/account_move_tier_validation_approver/views/res_config_settings_views.xml b/account_move_tier_validation_approver/views/res_config_settings_views.xml
new file mode 100644
index 00000000..3dff01b7
--- /dev/null
+++ b/account_move_tier_validation_approver/views/res_config_settings_views.xml
@@ -0,0 +1,31 @@
+
+
+
+ res.config.settings.view.form.inherit
+ res.config.settings
+
+
+
+
+
+
+
+
+
+
+
+ Require approver before posting vendor bills
+
+
+
+
+
+
+
diff --git a/account_move_tier_validation_approver/views/res_partner_views.xml b/account_move_tier_validation_approver/views/res_partner_views.xml
new file mode 100644
index 00000000..12cdc20b
--- /dev/null
+++ b/account_move_tier_validation_approver/views/res_partner_views.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+ res.partner.move_approve.user
+ res.partner
+
+
+
+
+
+
+
+
+
From 35a0bd46807d79041e7717c49948138085ff940b Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Fri, 10 Sep 2021 09:47:16 +0000
Subject: [PATCH 02/22] [UPD] Update account_move_tier_validation_approver.pot
---
.../account_move_tier_validation_approver.pot | 83 +++++++++++++++++++
1 file changed, 83 insertions(+)
create mode 100644 account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot
diff --git a/account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot b/account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot
new file mode 100644
index 00000000..c51cf34b
--- /dev/null
+++ b/account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot
@@ -0,0 +1,83 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_move_tier_validation_approver
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 13.0\n"
+"Report-Msgid-Bugs-To: \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: account_move_tier_validation_approver
+#: model_terms:ir.ui.view,arch_db:account_move_tier_validation_approver.res_config_settings_view_form
+msgid ""
+""
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_partner__approver_id
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_users__approver_id
+msgid "Approver of Vendor Bills"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_company__validation_approver_tier_definition_id
+msgid "Bill approval tier definition"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model,name:account_move_tier_validation_approver.model_res_company
+msgid "Companies"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model,name:account_move_tier_validation_approver.model_res_config_settings
+msgid "Config Settings"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model,name:account_move_tier_validation_approver.model_res_partner
+msgid "Contact"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: code:addons/account_move_tier_validation_approver/models/account_move.py:0
+#, python-format
+msgid "It is mandatory to indicate a Responsible for Approval"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model,name:account_move_tier_validation_approver.model_account_move
+msgid "Journal Entries"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_config_settings__require_approver_in_vendor_bills
+msgid "Require Approver In Vendor Bills"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model_terms:ir.ui.view,arch_db:account_move_tier_validation_approver.res_config_settings_view_form
+msgid "Require approver before posting vendor bills"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_company__require_approver_in_vendor_bills
+msgid "Require approver in vendor bills"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,help:account_move_tier_validation_approver.field_res_config_settings__require_approver_in_vendor_bills
+msgid "Requires adding an approver before a vendor bill can be posted."
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_account_move__approver_id
+msgid "Responsible for Approval"
+msgstr ""
From d9cd288d5f03327c871c3f84c9b541eff461027f Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Fri, 10 Sep 2021 10:11:27 +0000
Subject: [PATCH 03/22] [UPD] README.rst
---
.../README.rst | 103 ++++
.../static/description/index.html | 446 ++++++++++++++++++
2 files changed, 549 insertions(+)
create mode 100644 account_move_tier_validation_approver/README.rst
create mode 100644 account_move_tier_validation_approver/static/description/index.html
diff --git a/account_move_tier_validation_approver/README.rst b/account_move_tier_validation_approver/README.rst
new file mode 100644
index 00000000..5b2bec15
--- /dev/null
+++ b/account_move_tier_validation_approver/README.rst
@@ -0,0 +1,103 @@
+=====================================
+Account Move Tier Validation Approver
+=====================================
+
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
+ :target: https://odoo-community.org/page/development-status
+ :alt: Beta
+.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
+ :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
+ :alt: License: LGPL-3
+.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
+ :target: https://github.com/OCA/account-invoicing/tree/13.0/account_move_tier_validation_approver
+ :alt: OCA/account-invoicing
+.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
+ :target: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-account_move_tier_validation_approver
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/95/13.0
+ :alt: Try me on Runbot
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
+This module allows to select a Responsible for approval in the partner form. If a tier definition is set and configured
+with the "Responsible for Approval" field, the approver will be the one chosen in the partner form.
+
+**Table of contents**
+
+.. contents::
+ :local:
+
+Configuration
+=============
+
+To configure this module, you need to:
+
+#. Go to *Settings > Technical > Tier Validations > Tier Definition*.
+#. Create a new tier or edit an existing one.
+#. Set the "Validated by" field to "Field in related record".
+#. Set the "Reviewer field" to "Responsible for Approval".
+
+A default tier validation called "Validation with Approver field" is set with this configuration.
+
+Usage
+=====
+
+You can assign a default user for approval associated to a supplier. In the
+partner form view, go to the *Sales and Purchase* tab, and into the *Purchase*
+section, and fill the field *Approver of Vendor Bills*.
+
+When you create a vendor bill the field *Responsible for Approval* will be
+filled in with the partner's default. You can change it if needed.
+
+Be aware that you won't be able to post a vendor bill unless you have indicated
+a Responsible for Approval.
+
+Used in connection with the module *Account Move Tier Validation* you can set
+up approvals specific to a department.
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues `_.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+`feedback `_.
+
+Do not contact contributors directly about support or help with technical issues.
+
+Credits
+=======
+
+Authors
+~~~~~~~
+
+* ForgeFlow
+
+Contributors
+~~~~~~~~~~~~
+
+* Lois Rilo
+* Adrià Gil Sorribes
+
+Maintainers
+~~~~~~~~~~~
+
+This module is maintained by the OCA.
+
+.. image:: https://odoo-community.org/logo.png
+ :alt: Odoo Community Association
+ :target: https://odoo-community.org
+
+OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
+This module is part of the `OCA/account-invoicing `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_move_tier_validation_approver/static/description/index.html b/account_move_tier_validation_approver/static/description/index.html
new file mode 100644
index 00000000..9ae3e7f5
--- /dev/null
+++ b/account_move_tier_validation_approver/static/description/index.html
@@ -0,0 +1,446 @@
+
+
+
+
+
+
+Account Move Tier Validation Approver
+
+
+
+
+
Account Move Tier Validation Approver
+
+
+
+
This module allows to select a Responsible for approval in the partner form. If a tier definition is set and configured
+with the “Responsible for Approval” field, the approver will be the one chosen in the partner form.
You can assign a default user for approval associated to a supplier. In the
+partner form view, go to the Sales and Purchase tab, and into the Purchase
+section, and fill the field Approver of Vendor Bills.
+
When you create a vendor bill the field Responsible for Approval will be
+filled in with the partner’s default. You can change it if needed.
+
Be aware that you won’t be able to post a vendor bill unless you have indicated
+a Responsible for Approval.
+
Used in connection with the module Account Move Tier Validation you can set
+up approvals specific to a department.
Bugs are tracked on GitHub Issues.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+feedback.
+
Do not contact contributors directly about support or help with technical issues.
OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module allows to select a Responsible for approval in the partner form. If a tier definition is set and configured
with the “Responsible for Approval” field, the approver will be the one chosen in the partner form.
Table of contents
From ebd995071cd74bd5a6e7dae1b06590742a19db8f Mon Sep 17 00:00:00 2001
From: Lois Rilo
Date: Tue, 27 Dec 2022 11:55:46 +0100
Subject: [PATCH 10/22] [FIX] manifest website links
---
account_move_tier_validation_approver/__manifest__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/account_move_tier_validation_approver/__manifest__.py b/account_move_tier_validation_approver/__manifest__.py
index 19d26f0a..7c4696c0 100644
--- a/account_move_tier_validation_approver/__manifest__.py
+++ b/account_move_tier_validation_approver/__manifest__.py
@@ -7,6 +7,7 @@
"category": "Accounting",
"license": "AGPL-3",
"depends": ["account_move_tier_validation"],
+ "website": "https://github.com/OCA/account-invoicing",
"data": [
"views/account_move_views.xml",
"views/res_partner_views.xml",
From 6fbc6929695063684425c2c9ce131520cfece25d Mon Sep 17 00:00:00 2001
From: Mateu Griful
Date: Fri, 20 Aug 2021 12:37:55 +0200
Subject: [PATCH 11/22] [14.0][MIG] account_move_tier_validation_approver
---
.../__manifest__.py | 4 ++--
.../models/account_move.py | 10 ++++++----
.../models/res_company.py | 2 +-
.../models/res_config_settings.py | 4 ++--
.../models/res_partner.py | 2 +-
.../tests/__init__.py | 2 +-
.../test_account_move_tier_validation_approver.py | 12 +++++++-----
.../views/account_move_views.xml | 4 ++--
.../views/res_partner_views.xml | 2 +-
9 files changed, 23 insertions(+), 19 deletions(-)
diff --git a/account_move_tier_validation_approver/__manifest__.py b/account_move_tier_validation_approver/__manifest__.py
index 7c4696c0..0fffb4b3 100644
--- a/account_move_tier_validation_approver/__manifest__.py
+++ b/account_move_tier_validation_approver/__manifest__.py
@@ -1,8 +1,8 @@
# Copyright 2021 ForgeFlow, S.L.
-# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Move Tier Validation Approver",
- "version": "13.0.2.0.0",
+ "version": "14.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"category": "Accounting",
"license": "AGPL-3",
diff --git a/account_move_tier_validation_approver/models/account_move.py b/account_move_tier_validation_approver/models/account_move.py
index 8be9e7ea..5c09bd2e 100644
--- a/account_move_tier_validation_approver/models/account_move.py
+++ b/account_move_tier_validation_approver/models/account_move.py
@@ -1,5 +1,5 @@
# Copyright 2021 ForgeFlow, S.L.
-# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
@@ -15,7 +15,7 @@ def _onchange_partner_approver_id(self):
if self.partner_id:
self.approver_id = self.partner_id.approver_id.id
- def post(self):
+ def _post(self, soft=True):
for move in self:
require_approver_in_vendor_bills = (
move.company_id.require_approver_in_vendor_bills
@@ -26,6 +26,8 @@ def post(self):
and not move.approver_id
):
raise UserError(
- _("It is mandatory to indicate a Responsible for Approval")
+ _(
+ "It is mandatory to indicate a Responsible for Approval (in {})"
+ ).format(move.name)
)
- return super(AccountMove, self).post()
+ return super()._post(soft)
diff --git a/account_move_tier_validation_approver/models/res_company.py b/account_move_tier_validation_approver/models/res_company.py
index a1452d08..d905721d 100644
--- a/account_move_tier_validation_approver/models/res_company.py
+++ b/account_move_tier_validation_approver/models/res_company.py
@@ -1,5 +1,5 @@
# Copyright 2020 ForgeFlow, S.L.
-# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
diff --git a/account_move_tier_validation_approver/models/res_config_settings.py b/account_move_tier_validation_approver/models/res_config_settings.py
index 9ffe662f..1addb199 100644
--- a/account_move_tier_validation_approver/models/res_config_settings.py
+++ b/account_move_tier_validation_approver/models/res_config_settings.py
@@ -1,5 +1,5 @@
# Copyright 2020 ForgeFlow, S.L.
-# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
@@ -28,7 +28,7 @@ def set_values(self):
"review_type": "field",
"name": "Validation with Approver field",
"reviewer_field_id": field.id,
- "definition_domain": "[('type', '=', 'in_invoice')]",
+ "definition_domain": "[('move_type', '=', 'in_invoice')]",
"approve_sequence": True,
"active": self.require_approver_in_vendor_bills,
}
diff --git a/account_move_tier_validation_approver/models/res_partner.py b/account_move_tier_validation_approver/models/res_partner.py
index 93d37620..e8df37e6 100644
--- a/account_move_tier_validation_approver/models/res_partner.py
+++ b/account_move_tier_validation_approver/models/res_partner.py
@@ -1,5 +1,5 @@
# Copyright 2021 ForgeFlow, S.L.
-# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
diff --git a/account_move_tier_validation_approver/tests/__init__.py b/account_move_tier_validation_approver/tests/__init__.py
index f67f7205..2de1f82a 100644
--- a/account_move_tier_validation_approver/tests/__init__.py
+++ b/account_move_tier_validation_approver/tests/__init__.py
@@ -1,3 +1,3 @@
-# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import test_account_move_tier_validation_approver
diff --git a/account_move_tier_validation_approver/tests/test_account_move_tier_validation_approver.py b/account_move_tier_validation_approver/tests/test_account_move_tier_validation_approver.py
index 0a1845a2..c1b3efae 100644
--- a/account_move_tier_validation_approver/tests/test_account_move_tier_validation_approver.py
+++ b/account_move_tier_validation_approver/tests/test_account_move_tier_validation_approver.py
@@ -1,5 +1,5 @@
# Copyright 2021 ForgeFlow (http://www.forgeflow.com)
-# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
@@ -24,7 +24,7 @@ def setUp(self):
self.vendor_bill = self.env["account.move"].create(
[
{
- "type": "in_invoice",
+ "move_type": "in_invoice",
"partner_id": self.res_partner_1.id,
"currency_id": self.currency_euro.id,
"approver_id": self.test_approver.id,
@@ -44,7 +44,7 @@ def setUp(self):
]
)
self.model_id = self.env["ir.model"].search(
- [("name", "=", "Journal Entries")], limit=1
+ [("model", "=", "account.move")], limit=1
)
self.field_id = self.env["ir.model.fields"].search(
[("name", "=", "approver_id")], limit=1
@@ -61,11 +61,13 @@ def test_field_validation_approver(self):
"review_type": "field",
"reviewer_field_id": self.field_id.id,
"definition_type": "domain",
- "definition_domain": "[('type', '=', 'in_invoice')]",
+ "definition_domain": "[('move_type', '=', 'in_invoice')]",
}
)
record = self.vendor_bill
- record.write({"approver_id": self.test_approver.id})
+ record.write(
+ {"approver_id": self.test_approver.id, "invoice_date": record.date}
+ )
record.with_user(self.test_user_1.id).request_validation()
record.invalidate_cache()
record.with_user(self.test_user_1.id).validate_tier()
diff --git a/account_move_tier_validation_approver/views/account_move_views.xml b/account_move_tier_validation_approver/views/account_move_views.xml
index 9889b21f..bc119a6e 100644
--- a/account_move_tier_validation_approver/views/account_move_views.xml
+++ b/account_move_tier_validation_approver/views/account_move_views.xml
@@ -1,6 +1,6 @@
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
account.move.form
@@ -10,7 +10,7 @@
diff --git a/account_move_tier_validation_approver/views/res_partner_views.xml b/account_move_tier_validation_approver/views/res_partner_views.xml
index 12cdc20b..1d3e94a0 100644
--- a/account_move_tier_validation_approver/views/res_partner_views.xml
+++ b/account_move_tier_validation_approver/views/res_partner_views.xml
@@ -1,6 +1,6 @@
-
+
From 5d8b0619cb89ff4cf8402145cb9d2e66ec9650d5 Mon Sep 17 00:00:00 2001
From: oca-ci
Date: Tue, 30 May 2023 16:13:23 +0000
Subject: [PATCH 12/22] [UPD] Update account_move_tier_validation_approver.pot
---
.../account_move_tier_validation_approver.pot | 32 +++++++++++++++++--
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot b/account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot
index c51cf34b..230d2c4d 100644
--- a/account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot
+++ b/account_move_tier_validation_approver/i18n/account_move_tier_validation_approver.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -46,15 +46,39 @@ msgstr ""
msgid "Contact"
msgstr ""
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_account_move__display_name
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_company__display_name
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_config_settings__display_name
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_partner__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_account_move__id
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_company__id
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_config_settings__id
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_partner__id
+msgid "ID"
+msgstr ""
+
#. module: account_move_tier_validation_approver
#: code:addons/account_move_tier_validation_approver/models/account_move.py:0
#, python-format
-msgid "It is mandatory to indicate a Responsible for Approval"
+msgid "It is mandatory to indicate a Responsible for Approval (in {})"
msgstr ""
#. module: account_move_tier_validation_approver
#: model:ir.model,name:account_move_tier_validation_approver.model_account_move
-msgid "Journal Entries"
+msgid "Journal Entry"
+msgstr ""
+
+#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_account_move____last_update
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_company____last_update
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_config_settings____last_update
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_res_partner____last_update
+msgid "Last Modified on"
msgstr ""
#. module: account_move_tier_validation_approver
@@ -78,6 +102,8 @@ msgid "Requires adding an approver before a vendor bill can be posted."
msgstr ""
#. module: account_move_tier_validation_approver
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_account_bank_statement_line__approver_id
#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_account_move__approver_id
+#: model:ir.model.fields,field_description:account_move_tier_validation_approver.field_account_payment__approver_id
msgid "Responsible for Approval"
msgstr ""
From a271327996f92f5d552fd0d83a3e938d1086c585 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 30 May 2023 16:25:28 +0000
Subject: [PATCH 13/22] [UPD] README.rst
---
account_move_tier_validation_approver/README.rst | 10 +++++-----
.../static/description/index.html | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/account_move_tier_validation_approver/README.rst b/account_move_tier_validation_approver/README.rst
index 2f5ff7d8..f1060a0e 100644
--- a/account_move_tier_validation_approver/README.rst
+++ b/account_move_tier_validation_approver/README.rst
@@ -14,13 +14,13 @@ Account Move Tier Validation Approver
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
- :target: https://github.com/OCA/account-invoicing/tree/13.0/account_move_tier_validation_approver
+ :target: https://github.com/OCA/account-invoicing/tree/14.0/account_move_tier_validation_approver
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-account_move_tier_validation_approver
+ :target: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_move_tier_validation_approver
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/95/13.0
+ :target: https://runbot.odoo-community.org/runbot/95/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -67,7 +67,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -98,6 +98,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/account-invoicing `_ project on GitHub.
+This module is part of the `OCA/account-invoicing `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_move_tier_validation_approver/static/description/index.html b/account_move_tier_validation_approver/static/description/index.html
index 82c6755f..bccb16b4 100644
--- a/account_move_tier_validation_approver/static/description/index.html
+++ b/account_move_tier_validation_approver/static/description/index.html
@@ -367,7 +367,7 @@
Account Move Tier Validation Approver
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module allows to select a Responsible for approval in the partner form. If a tier definition is set and configured
with the “Responsible for Approval” field, the approver will be the one chosen in the partner form.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
From b8c5a76185aa3b9753f8321572b9858922dacb58 Mon Sep 17 00:00:00 2001
From: bosd
Date: Thu, 22 Jun 2023 17:20:07 +0200
Subject: [PATCH 14/22] [MIG] account_move_tier_validation_approver: Migration
to 15.0
---
.../__manifest__.py | 2 +-
.../views/res_partner_views.xml | 28 +++++++++----------
2 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/account_move_tier_validation_approver/__manifest__.py b/account_move_tier_validation_approver/__manifest__.py
index 0fffb4b3..1379f936 100644
--- a/account_move_tier_validation_approver/__manifest__.py
+++ b/account_move_tier_validation_approver/__manifest__.py
@@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Move Tier Validation Approver",
- "version": "14.0.1.0.0",
+ "version": "15.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"category": "Accounting",
"license": "AGPL-3",
diff --git a/account_move_tier_validation_approver/views/res_partner_views.xml b/account_move_tier_validation_approver/views/res_partner_views.xml
index 1d3e94a0..8ab4af16 100644
--- a/account_move_tier_validation_approver/views/res_partner_views.xml
+++ b/account_move_tier_validation_approver/views/res_partner_views.xml
@@ -2,19 +2,17 @@
-
-
- res.partner.move_approve.user
- res.partner
-
-
-
-
-
-
-
-
+
+ res.partner.move_approve.user
+ res.partner
+
+
+
+
+
+
+
From 2673d325e0ce54e2603094fdfd7038d22c8cc7bb Mon Sep 17 00:00:00 2001
From: Kevin Khao
Date: Sat, 2 Nov 2024 16:01:22 +0200
Subject: [PATCH 15/22] [IMP] pre-commit auto fixes
---
.../README.rst | 68 +++++++++-------
.../pyproject.toml | 3 +
.../readme/CONFIGURE.md | 10 +++
.../readme/CONFIGURE.rst | 8 --
.../readme/CONTRIBUTORS.md | 2 +
.../readme/CONTRIBUTORS.rst | 2 -
.../readme/DESCRIPTION.md | 4 +
.../readme/DESCRIPTION.rst | 2 -
.../readme/USAGE.md | 12 +++
.../readme/USAGE.rst | 12 ---
.../static/description/index.html | 81 ++++++++++---------
11 files changed, 112 insertions(+), 92 deletions(-)
create mode 100644 account_move_tier_validation_approver/pyproject.toml
create mode 100644 account_move_tier_validation_approver/readme/CONFIGURE.md
delete mode 100644 account_move_tier_validation_approver/readme/CONFIGURE.rst
create mode 100644 account_move_tier_validation_approver/readme/CONTRIBUTORS.md
delete mode 100644 account_move_tier_validation_approver/readme/CONTRIBUTORS.rst
create mode 100644 account_move_tier_validation_approver/readme/DESCRIPTION.md
delete mode 100644 account_move_tier_validation_approver/readme/DESCRIPTION.rst
create mode 100644 account_move_tier_validation_approver/readme/USAGE.md
delete mode 100644 account_move_tier_validation_approver/readme/USAGE.rst
diff --git a/account_move_tier_validation_approver/README.rst b/account_move_tier_validation_approver/README.rst
index f1060a0e..b640ea40 100644
--- a/account_move_tier_validation_approver/README.rst
+++ b/account_move_tier_validation_approver/README.rst
@@ -2,10 +2,13 @@
Account Move Tier Validation Approver
=====================================
-.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+..
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! source digest: sha256:6417488b101536a3a97ee3b8daccdb426f184aedf9d884f364f29e6952a0278c
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
@@ -14,19 +17,21 @@ Account Move Tier Validation Approver
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
- :target: https://github.com/OCA/account-invoicing/tree/14.0/account_move_tier_validation_approver
+ :target: https://github.com/OCA/account-invoicing/tree/18.0/account_move_tier_validation_approver
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_move_tier_validation_approver
+ :target: https://translation.odoo-community.org/projects/account-invoicing-18-0/account-invoicing-18-0-account_move_tier_validation_approver
:alt: Translate me on Weblate
-.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/95/14.0
- :alt: Try me on Runbot
+.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/account-invoicing&target_branch=18.0
+ :alt: Try me on Runboat
-|badge1| |badge2| |badge3| |badge4| |badge5|
+|badge1| |badge2| |badge3| |badge4| |badge5|
-This module allows to select a Responsible for approval in the partner form. If a tier definition is set and configured
-with the "Responsible for Approval" field, the approver will be the one chosen in the partner form.
+This module allows to select a Responsible for approval in the partner
+form. If a tier definition is set and configured with the "Responsible
+for Approval" field, the approver will be the one chosen in the partner
+form.
**Table of contents**
@@ -38,36 +43,37 @@ Configuration
To configure this module, you need to:
-#. Go to *Settings > Technical > Tier Validations > Tier Definition*.
-#. Create a new tier or edit an existing one.
-#. Set the "Validated by" field to "Field in related record".
-#. Set the "Reviewer field" to "Responsible for Approval".
+1. Go to *Settings > Technical > Tier Validations > Tier Definition*.
+2. Create a new tier or edit an existing one.
+3. Set the "Validated by" field to "Field in related record".
+4. Set the "Reviewer field" to "Responsible for Approval".
-A default tier validation called "Validation with Approver field" is set with this configuration.
+A default tier validation called "Validation with Approver field" is set
+with this configuration.
Usage
=====
-You can assign a default user for approval associated to a supplier. In the
-partner form view, go to the *Sales and Purchase* tab, and into the *Purchase*
-section, and fill the field *Approver of Vendor Bills*.
+You can assign a default user for approval associated to a supplier. In
+the partner form view, go to the *Sales and Purchase* tab, and into the
+*Purchase* section, and fill the field *Approver of Vendor Bills*.
-When you create a vendor bill the field *Responsible for Approval* will be
-filled in with the partner's default. You can change it if needed.
+When you create a vendor bill the field *Responsible for Approval* will
+be filled in with the partner's default. You can change it if needed.
-Be aware that you won't be able to post a vendor bill unless you have indicated
-a Responsible for Approval.
+Be aware that you won't be able to post a vendor bill unless you have
+indicated a Responsible for Approval.
-Used in connection with the module *Account Move Tier Validation* you can set
-up approvals specific to a department.
+Used in connection with the module *Account Move Tier Validation* you
+can set up approvals specific to a department.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
-If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+If you spotted it first, help us to smash it by providing a detailed and welcomed
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -75,18 +81,18 @@ Credits
=======
Authors
-~~~~~~~
+-------
* ForgeFlow
Contributors
-~~~~~~~~~~~~
+------------
-* Lois Rilo
-* Adrià Gil Sorribes
+- Lois Rilo
+- Adrià Gil Sorribes
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -98,6 +104,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/account-invoicing `_ project on GitHub.
+This module is part of the `OCA/account-invoicing `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_move_tier_validation_approver/pyproject.toml b/account_move_tier_validation_approver/pyproject.toml
new file mode 100644
index 00000000..4231d0cc
--- /dev/null
+++ b/account_move_tier_validation_approver/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/account_move_tier_validation_approver/readme/CONFIGURE.md b/account_move_tier_validation_approver/readme/CONFIGURE.md
new file mode 100644
index 00000000..565bf10f
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/CONFIGURE.md
@@ -0,0 +1,10 @@
+To configure this module, you need to:
+
+1. Go to *Settings \> Technical \> Tier Validations \> Tier
+ Definition*.
+2. Create a new tier or edit an existing one.
+3. Set the "Validated by" field to "Field in related record".
+4. Set the "Reviewer field" to "Responsible for Approval".
+
+A default tier validation called "Validation with Approver field" is set
+with this configuration.
diff --git a/account_move_tier_validation_approver/readme/CONFIGURE.rst b/account_move_tier_validation_approver/readme/CONFIGURE.rst
deleted file mode 100644
index 4fdbf736..00000000
--- a/account_move_tier_validation_approver/readme/CONFIGURE.rst
+++ /dev/null
@@ -1,8 +0,0 @@
-To configure this module, you need to:
-
-#. Go to *Settings > Technical > Tier Validations > Tier Definition*.
-#. Create a new tier or edit an existing one.
-#. Set the "Validated by" field to "Field in related record".
-#. Set the "Reviewer field" to "Responsible for Approval".
-
-A default tier validation called "Validation with Approver field" is set with this configuration.
diff --git a/account_move_tier_validation_approver/readme/CONTRIBUTORS.md b/account_move_tier_validation_approver/readme/CONTRIBUTORS.md
new file mode 100644
index 00000000..690846b7
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/CONTRIBUTORS.md
@@ -0,0 +1,2 @@
+- Lois Rilo \<\>
+- Adrià Gil Sorribes \<\>
diff --git a/account_move_tier_validation_approver/readme/CONTRIBUTORS.rst b/account_move_tier_validation_approver/readme/CONTRIBUTORS.rst
deleted file mode 100644
index c32689f4..00000000
--- a/account_move_tier_validation_approver/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-* Lois Rilo
-* Adrià Gil Sorribes
diff --git a/account_move_tier_validation_approver/readme/DESCRIPTION.md b/account_move_tier_validation_approver/readme/DESCRIPTION.md
new file mode 100644
index 00000000..088cf8d5
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/DESCRIPTION.md
@@ -0,0 +1,4 @@
+This module allows to select a Responsible for approval in the partner
+form. If a tier definition is set and configured with the "Responsible
+for Approval" field, the approver will be the one chosen in the partner
+form.
diff --git a/account_move_tier_validation_approver/readme/DESCRIPTION.rst b/account_move_tier_validation_approver/readme/DESCRIPTION.rst
deleted file mode 100644
index 1bbcddab..00000000
--- a/account_move_tier_validation_approver/readme/DESCRIPTION.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-This module allows to select a Responsible for approval in the partner form. If a tier definition is set and configured
-with the "Responsible for Approval" field, the approver will be the one chosen in the partner form.
diff --git a/account_move_tier_validation_approver/readme/USAGE.md b/account_move_tier_validation_approver/readme/USAGE.md
new file mode 100644
index 00000000..0d7b786e
--- /dev/null
+++ b/account_move_tier_validation_approver/readme/USAGE.md
@@ -0,0 +1,12 @@
+You can assign a default user for approval associated to a supplier. In
+the partner form view, go to the *Sales and Purchase* tab, and into the
+*Purchase* section, and fill the field *Approver of Vendor Bills*.
+
+When you create a vendor bill the field *Responsible for Approval* will
+be filled in with the partner's default. You can change it if needed.
+
+Be aware that you won't be able to post a vendor bill unless you have
+indicated a Responsible for Approval.
+
+Used in connection with the module *Account Move Tier Validation* you
+can set up approvals specific to a department.
diff --git a/account_move_tier_validation_approver/readme/USAGE.rst b/account_move_tier_validation_approver/readme/USAGE.rst
deleted file mode 100644
index 9fa3340d..00000000
--- a/account_move_tier_validation_approver/readme/USAGE.rst
+++ /dev/null
@@ -1,12 +0,0 @@
-You can assign a default user for approval associated to a supplier. In the
-partner form view, go to the *Sales and Purchase* tab, and into the *Purchase*
-section, and fill the field *Approver of Vendor Bills*.
-
-When you create a vendor bill the field *Responsible for Approval* will be
-filled in with the partner's default. You can change it if needed.
-
-Be aware that you won't be able to post a vendor bill unless you have indicated
-a Responsible for Approval.
-
-Used in connection with the module *Account Move Tier Validation* you can set
-up approvals specific to a department.
diff --git a/account_move_tier_validation_approver/static/description/index.html b/account_move_tier_validation_approver/static/description/index.html
index bccb16b4..b3527432 100644
--- a/account_move_tier_validation_approver/static/description/index.html
+++ b/account_move_tier_validation_approver/static/description/index.html
@@ -1,20 +1,20 @@
-
-
+
Account Move Tier Validation Approver
-
This module allows to select a Responsible for approval in the partner
form. If a tier definition is set and configured with the “Responsible
for Approval” field, the approver will be the one chosen in the partner
@@ -389,7 +394,7 @@
You can assign a default user for approval associated to a supplier. In
the partner form view, go to the Sales and Purchase tab, and into the
Purchase section, and fill the field Approver of Vendor Bills.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
@@ -421,15 +426,15 @@
This module allows to select a Responsible for approval in the partner
form. If a tier definition is set and configured with the “Responsible
for Approval” field, the approver will be the one chosen in the partner
@@ -419,10 +419,10 @@
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.