diff --git a/account_move_tier_validation_approver_group/README.rst b/account_move_tier_validation_approver_group/README.rst new file mode 100644 index 000000000..290e5bd0d --- /dev/null +++ b/account_move_tier_validation_approver_group/README.rst @@ -0,0 +1,119 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +=========================================== +Account Move Tier Validation Approver Group +=========================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f58257d33200151133e841b5f93a04c16b438444563afefec83cbd9d72900792 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ftier--validation-lightgray.png?logo=github + :target: https://github.com/OCA/tier-validation/tree/20.0/account_move_tier_validation_approver_group + :alt: OCA/tier-validation +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/tier-validation-20-0/tier-validation-20-0-account_move_tier_validation_approver_group + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/tier-validation&target_branch=20.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends *Account Move Tier Validation Approver* so that a +group of users, and not only a single user, can be responsible for +approving a vendor bill. + +You can set a default *Approver of Vendor Bills group* on the vendor. +New vendor bills take this group as *Group responsible for approval*. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +1. Go to *Invoicing > Configuration > Settings*. +2. In the *Vendor Bills* section, enable *Require Approver Group In + Vendor Bills*. This creates (or activates) the tier definition + "Validation with Approver field (group)". This tier only applies to + bills that have a *Group responsible for approval*. +3. On the vendor, in the *Sales & Purchase* tab, set the *Approver of + Vendor Bills group*. + +If you also enable *Require Approver In Vendor Bills* (the individual +approver), a bill can be posted when it has a user OR a group +responsible for approval. In this case, add a domain to the individual +tier definition ("Validation with Approver field") so that it only +applies when no group is set, for example +``[('move_type', '=', 'in_invoice'), ('approver_group_id', '=', False)]``. + +Usage +===== + +1. Create a vendor bill for a vendor with an *Approver of Vendor Bills + group*. The *Group responsible for approval* is filled in. You can + change it if needed. +2. Click on *Request Validation*. Any member of the group can approve + the bill. +3. Once approved, post the bill. + +Known issues / Roadmap +====================== + +- Add the individual approver tier domain automatically when both + options are enabled. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* 360 ERP + +Contributors +------------ + +- Kevin Khao kevinkhao@gmail.com (https://www.360erp.com) + +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/tier-validation `_ 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_group/__init__.py b/account_move_tier_validation_approver_group/__init__.py new file mode 100644 index 000000000..548c73eb1 --- /dev/null +++ b/account_move_tier_validation_approver_group/__init__.py @@ -0,0 +1,2 @@ +from .hooks import pre_init_hook +from . import models diff --git a/account_move_tier_validation_approver_group/__manifest__.py b/account_move_tier_validation_approver_group/__manifest__.py new file mode 100644 index 000000000..bb5baf165 --- /dev/null +++ b/account_move_tier_validation_approver_group/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2025 360ERP +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Account Move Tier Validation Approver Group", + "summary": "Allow a group of users to be responsible for approving vendor bills", + "version": "20.0.1.0.0", + "category": "Accounting", + "license": "AGPL-3", + "author": "360 ERP,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/tier-validation", + "depends": [ + "account_move_tier_validation_approver", + ], + "data": [ + "views/account_move.xml", + "views/res_partner.xml", + "views/res_config_settings_views.xml", + ], + "pre_init_hook": "pre_init_hook", +} diff --git a/account_move_tier_validation_approver_group/hooks.py b/account_move_tier_validation_approver_group/hooks.py new file mode 100644 index 000000000..e7c9f01b0 --- /dev/null +++ b/account_move_tier_validation_approver_group/hooks.py @@ -0,0 +1,11 @@ +from odoo.tools import sql + + +def pre_init_hook(env): + """Prepare new account.move.approver_group_id computed field. + + Add column to avoid MemoryError on an existing Odoo instance + with lots of data. + """ + if not sql.column_exists(env.cr, "account_move", "approver_group_id"): + sql.create_column(env.cr, "account_move", "approver_group_id", "int4") diff --git a/account_move_tier_validation_approver_group/models/__init__.py b/account_move_tier_validation_approver_group/models/__init__.py new file mode 100644 index 000000000..fab388250 --- /dev/null +++ b/account_move_tier_validation_approver_group/models/__init__.py @@ -0,0 +1,4 @@ +from . import account_move +from . import res_partner +from . import res_company +from . import res_config_settings diff --git a/account_move_tier_validation_approver_group/models/account_move.py b/account_move_tier_validation_approver_group/models/account_move.py new file mode 100644 index 000000000..1a97bf9c1 --- /dev/null +++ b/account_move_tier_validation_approver_group/models/account_move.py @@ -0,0 +1,55 @@ +# Copyright 2025 360 ERP +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models +from odoo.exceptions import UserError + + +class AccountMove(models.Model): + _inherit = "account.move" + + approver_group_id = fields.Many2one( + "res.groups", + string="Group responsible for approval", + compute="_compute_approver_group_id", + readonly=False, + store=True, + ) + + @api.depends("partner_id") + def _compute_approver_group_id(self): + for rec in self: + if rec.approver_group_id: + # assign a value in any case + rec.approver_group_id = rec.approver_group_id + elif rec.partner_id.approver_group_id: + rec.approver_group_id = rec.partner_id.approver_group_id + else: + rec.approver_group_id = False + + def _check_has_approver(self): + """Take the approver group into account. + + When an approver (user) or an approver group is required, a vendor + bill can be posted if it has a user OR a group responsible for + the approval. + """ + self.ensure_one() + company = self.company_id + approver_required = ( + company.require_approver_in_vendor_bills + or company.require_approver_group_in_vendor_bills + ) + if ( + self.is_purchase_document(include_receipts=True) + and approver_required + and not self.approver_id + and not self.approver_group_id + ): + raise UserError( + self.env._( + "It is mandatory to indicate a Responsible for Approval " + "(user or group) (in %s)", + self.name, + ) + ) diff --git a/account_move_tier_validation_approver_group/models/res_company.py b/account_move_tier_validation_approver_group/models/res_company.py new file mode 100644 index 000000000..780418c56 --- /dev/null +++ b/account_move_tier_validation_approver_group/models/res_company.py @@ -0,0 +1,15 @@ +# Copyright 2020 ForgeFlow, S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ResCompany(models.Model): + _inherit = "res.company" + + require_approver_group_in_vendor_bills = fields.Boolean( + string="Require approver in vendor bills (group)" + ) + validation_approver_group_tier_definition_id = fields.Many2one( + comodel_name="tier.definition", string="Bill approval tier definition (group)" + ) diff --git a/account_move_tier_validation_approver_group/models/res_config_settings.py b/account_move_tier_validation_approver_group/models/res_config_settings.py new file mode 100644 index 000000000..1c5b9fc96 --- /dev/null +++ b/account_move_tier_validation_approver_group/models/res_config_settings.py @@ -0,0 +1,47 @@ +# Copyright 2020 ForgeFlow, S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + require_approver_group_in_vendor_bills = fields.Boolean( + string="Require Approver Group In Vendor Bills", + help="Requires adding an approver group before a vendor bill can be posted. " + "Note: If you combine both rules, be sure to configure the appropriate domains " + "on the tier definitions", + related="company_id.require_approver_group_in_vendor_bills", + readonly=False, + ) + + def set_values(self): + company = self.company_id + tier_definition = company.validation_approver_group_tier_definition_id + if not tier_definition: + field = self.env["ir.model.fields"]._get( + "account.move", "approver_group_id" + ) + tier_definition = self.env["tier.definition"].create( + self._prepare_tier_approver_group_definition_values(field) + ) + company.validation_approver_group_tier_definition_id = tier_definition + if self.require_approver_group_in_vendor_bills: + tier_definition.action_unarchive() + else: + tier_definition.action_archive() + return super().set_values() + + def _prepare_tier_approver_group_definition_values(self, field): + return { + "model_id": self.env["ir.model"]._get_id("account.move"), + "review_type": "field", + "name": "Validation with Approver field (group)", + "reviewer_field_id": field.id, + "definition_domain": ( + "[('move_type', '=', 'in_invoice'), ('approver_group_id', '!=', False)]" + ), + "approve_sequence": True, + "active": self.require_approver_group_in_vendor_bills, + } diff --git a/account_move_tier_validation_approver_group/models/res_partner.py b/account_move_tier_validation_approver_group/models/res_partner.py new file mode 100644 index 000000000..06552beb1 --- /dev/null +++ b/account_move_tier_validation_approver_group/models/res_partner.py @@ -0,0 +1,12 @@ +# Copyright 2025 360 ERP +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + approver_group_id = fields.Many2one( + "res.groups", string="Approver of Vendor Bills group" + ) diff --git a/account_move_tier_validation_approver_group/pyproject.toml b/account_move_tier_validation_approver_group/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_move_tier_validation_approver_group/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_move_tier_validation_approver_group/readme/CONFIGURE.md b/account_move_tier_validation_approver_group/readme/CONFIGURE.md new file mode 100644 index 000000000..0ee2c7609 --- /dev/null +++ b/account_move_tier_validation_approver_group/readme/CONFIGURE.md @@ -0,0 +1,14 @@ +1. Go to *Invoicing \> Configuration \> Settings*. +2. In the *Vendor Bills* section, enable *Require Approver Group In + Vendor Bills*. This creates (or activates) the tier definition + "Validation with Approver field (group)". This tier only applies to + bills that have a *Group responsible for approval*. +3. On the vendor, in the *Sales & Purchase* tab, set the *Approver of + Vendor Bills group*. + +If you also enable *Require Approver In Vendor Bills* (the individual +approver), a bill can be posted when it has a user OR a group +responsible for approval. In this case, add a domain to the individual +tier definition ("Validation with Approver field") so that it only +applies when no group is set, for example +`[('move_type', '=', 'in_invoice'), ('approver_group_id', '=', False)]`. diff --git a/account_move_tier_validation_approver_group/readme/CONTRIBUTORS.md b/account_move_tier_validation_approver_group/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..a807ce13e --- /dev/null +++ b/account_move_tier_validation_approver_group/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- Kevin Khao (https://www.360erp.com) + diff --git a/account_move_tier_validation_approver_group/readme/DESCRIPTION.md b/account_move_tier_validation_approver_group/readme/DESCRIPTION.md new file mode 100644 index 000000000..500e01126 --- /dev/null +++ b/account_move_tier_validation_approver_group/readme/DESCRIPTION.md @@ -0,0 +1,6 @@ +This module extends *Account Move Tier Validation Approver* so that a +group of users, and not only a single user, can be responsible for +approving a vendor bill. + +You can set a default *Approver of Vendor Bills group* on the vendor. +New vendor bills take this group as *Group responsible for approval*. diff --git a/account_move_tier_validation_approver_group/readme/ROADMAP.md b/account_move_tier_validation_approver_group/readme/ROADMAP.md new file mode 100644 index 000000000..1f8e0da61 --- /dev/null +++ b/account_move_tier_validation_approver_group/readme/ROADMAP.md @@ -0,0 +1,2 @@ +- Add the individual approver tier domain automatically when both + options are enabled. diff --git a/account_move_tier_validation_approver_group/readme/USAGE.md b/account_move_tier_validation_approver_group/readme/USAGE.md new file mode 100644 index 000000000..55c47516e --- /dev/null +++ b/account_move_tier_validation_approver_group/readme/USAGE.md @@ -0,0 +1,6 @@ +1. Create a vendor bill for a vendor with an *Approver of Vendor Bills + group*. The *Group responsible for approval* is filled in. You can + change it if needed. +2. Click on *Request Validation*. Any member of the group can approve + the bill. +3. Once approved, post the bill. diff --git a/account_move_tier_validation_approver_group/static/description/icon.png b/account_move_tier_validation_approver_group/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/account_move_tier_validation_approver_group/static/description/icon.png differ diff --git a/account_move_tier_validation_approver_group/static/description/index.html b/account_move_tier_validation_approver_group/static/description/index.html new file mode 100644 index 000000000..0505048ce --- /dev/null +++ b/account_move_tier_validation_approver_group/static/description/index.html @@ -0,0 +1,472 @@ + + + + + +Account Move Tier Validation Approver Group + + + +
+ + + +Odoo Community Association + +
+

Account Move Tier Validation Approver Group

+ +

Beta License: AGPL-3 OCA/tier-validation Translate me on Weblate Try me on Runboat

+

This module extends Account Move Tier Validation Approver so that a +group of users, and not only a single user, can be responsible for +approving a vendor bill.

+

You can set a default Approver of Vendor Bills group on the vendor. +New vendor bills take this group as Group responsible for approval.

+

Table of contents

+ +
+

Configuration

+
    +
  1. Go to Invoicing > Configuration > Settings.
  2. +
  3. In the Vendor Bills section, enable Require Approver Group In +Vendor Bills. This creates (or activates) the tier definition +“Validation with Approver field (group)”. This tier only applies to +bills that have a Group responsible for approval.
  4. +
  5. On the vendor, in the Sales & Purchase tab, set the Approver of +Vendor Bills group.
  6. +
+

If you also enable Require Approver In Vendor Bills (the individual +approver), a bill can be posted when it has a user OR a group +responsible for approval. In this case, add a domain to the individual +tier definition (“Validation with Approver field”) so that it only +applies when no group is set, for example +[('move_type', '=', 'in_invoice'), ('approver_group_id', '=', False)].

+
+
+

Usage

+
    +
  1. Create a vendor bill for a vendor with an Approver of Vendor Bills +group. The Group responsible for approval is filled in. You can +change it if needed.
  2. +
  3. Click on Request Validation. Any member of the group can approve +the bill.
  4. +
  5. Once approved, post the bill.
  6. +
+
+
+

Known issues / Roadmap

+
    +
  • Add the individual approver tier domain automatically when both +options are enabled.
  • +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • 360 ERP
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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/tier-validation 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_group/tests/__init__.py b/account_move_tier_validation_approver_group/tests/__init__.py new file mode 100644 index 000000000..5eda3546e --- /dev/null +++ b/account_move_tier_validation_approver_group/tests/__init__.py @@ -0,0 +1 @@ +from . import test_account_move_tier_validation_approver_group diff --git a/account_move_tier_validation_approver_group/tests/test_account_move_tier_validation_approver_group.py b/account_move_tier_validation_approver_group/tests/test_account_move_tier_validation_approver_group.py new file mode 100644 index 000000000..a1e9729d1 --- /dev/null +++ b/account_move_tier_validation_approver_group/tests/test_account_move_tier_validation_approver_group.py @@ -0,0 +1,157 @@ +# Copyright 2026 360ERP (https://www.360erp.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import Command +from odoo.exceptions import UserError, ValidationError +from odoo.tests import new_test_user, tagged + +from odoo.addons.account.tests.common import AccountTestInvoicingCommon + + +@tagged("post_install", "-at_install") +class TestAccountMoveTierValidationApproverGroup(AccountTestInvoicingCommon): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) + cls.approver_group = cls.env["res.groups"].create( + {"name": "Vendor Bill Approvers"} + ) + cls.group_approver = new_test_user( + cls.env, + name="Group Approver", + login="group_approver", + groups="base.group_user,account.group_account_manager", + ) + cls.group_approver.group_ids += cls.approver_group + cls.other_user = new_test_user( + cls.env, + name="Other User", + login="other_user", + groups="base.group_user,account.group_account_manager", + ) + cls.single_approver = new_test_user( + cls.env, + name="Single Approver", + login="single_approver", + groups="base.group_user,account.group_account_manager", + ) + cls.vendor = cls.env["res.partner"].create( + { + "name": "Vendor with approver group", + "approver_group_id": cls.approver_group.id, + } + ) + cls.vendor_no_group = cls.env["res.partner"].create( + {"name": "Vendor without approver group"} + ) + cls.product = cls.env["product.product"].create({"name": "Desk"}) + # Only keep the tiers created by these tests + cls.env["tier.definition"].search([]).action_archive() + + def _create_bill(self, partner, **values): + return self.env["account.move"].create( + { + "move_type": "in_invoice", + "partner_id": partner.id, + "invoice_date": "2025-01-01", + "invoice_line_ids": [ + Command.create( + { + "product_id": self.product.id, + "quantity": 1, + "price_unit": 100, + } + ) + ], + **values, + } + ) + + def _settings(self, **values): + config = self.env["res.config.settings"].create(values) + config.set_values() + return config + + def test_01_compute_approver_group_id(self): + """The group comes from the vendor and can be changed by hand.""" + move = self.env["account.move"].new( + {"move_type": "in_invoice", "partner_id": self.vendor_no_group.id} + ) + self.assertFalse(move.approver_group_id) + move.partner_id = self.vendor + self.assertEqual(move.approver_group_id, self.approver_group) + other_group = self.env["res.groups"].create({"name": "Other approvers"}) + move.approver_group_id = other_group + move._compute_approver_group_id() + self.assertEqual(move.approver_group_id, other_group) + + def test_02_compute_keeps_individual_approver(self): + """Computing the group never removes the individual approver.""" + bill = self._create_bill( + self.vendor_no_group, approver_id=self.single_approver.id + ) + self.assertFalse(bill.approver_group_id) + self.assertEqual(bill.approver_id, self.single_approver) + bill._compute_approver_group_id() + self.assertEqual(bill.approver_id, self.single_approver) + + def test_03_settings_are_independent(self): + """The group option does not change the individual option.""" + self._settings( + require_approver_in_vendor_bills=False, + require_approver_group_in_vendor_bills=True, + ) + company = self.env.company + self.assertTrue(company.require_approver_group_in_vendor_bills) + self.assertFalse(company.require_approver_in_vendor_bills) + tier = company.validation_approver_group_tier_definition_id + self.assertTrue(tier.active) + self.assertEqual(tier.reviewer_field_id.name, "approver_group_id") + self.assertIn("approver_group_id", tier.definition_domain) + self._settings(require_approver_group_in_vendor_bills=False) + self.assertFalse(tier.active) + self.assertFalse(company.require_approver_group_in_vendor_bills) + + def test_04_post_requires_user_or_group(self): + self._settings(require_approver_group_in_vendor_bills=True) + bill = self._create_bill(self.vendor_no_group) + with self.assertRaisesRegex(UserError, "user or group"): + bill._post() + # A group is enough + bill.approver_group_id = self.approver_group + bill._check_has_approver() + # A user is enough too + bill.approver_group_id = False + bill.approver_id = self.single_approver + bill._check_has_approver() + + def test_05_individual_setting_accepts_group(self): + """With the individual option, a bill with only a group can be posted.""" + self._settings(require_approver_in_vendor_bills=True) + bill = self._create_bill(self.vendor) + self.assertFalse(bill.approver_id) + self.assertEqual(bill.approver_group_id, self.approver_group) + bill._check_has_approver() + + def test_06_group_member_validates(self): + self._settings(require_approver_group_in_vendor_bills=True) + bill = self._create_bill(self.vendor) + bill.with_user(self.other_user).request_validation() + bill.invalidate_recordset() + self.assertIn(self.group_approver, bill.reviewer_ids) + self.assertNotIn(self.other_user, bill.reviewer_ids) + bill.with_user(self.other_user).validate_tier() + with self.assertRaises(ValidationError): + bill.action_post() + bill.with_user(self.group_approver).validate_tier() + bill.action_post() + self.assertEqual(bill.state, "posted") + + def test_07_group_tier_skipped_without_group(self): + """The default group tier does not apply to bills without a group.""" + self._settings(require_approver_group_in_vendor_bills=True) + bill = self._create_bill( + self.vendor_no_group, approver_id=self.single_approver.id + ) + self.assertFalse(bill.need_validation) diff --git a/account_move_tier_validation_approver_group/views/account_move.xml b/account_move_tier_validation_approver_group/views/account_move.xml new file mode 100644 index 000000000..3855dd8e8 --- /dev/null +++ b/account_move_tier_validation_approver_group/views/account_move.xml @@ -0,0 +1,32 @@ + + + + + account.move.form + account.move + + + + + + + + + account.move.select - approver group + account.move + + + + + + + + diff --git a/account_move_tier_validation_approver_group/views/res_config_settings_views.xml b/account_move_tier_validation_approver_group/views/res_config_settings_views.xml new file mode 100644 index 000000000..180f828f6 --- /dev/null +++ b/account_move_tier_validation_approver_group/views/res_config_settings_views.xml @@ -0,0 +1,25 @@ + + + + res.config.settings.view.form.inherit + res.config.settings + + + + + + + + + + diff --git a/account_move_tier_validation_approver_group/views/res_partner.xml b/account_move_tier_validation_approver_group/views/res_partner.xml new file mode 100644 index 000000000..382f4fda4 --- /dev/null +++ b/account_move_tier_validation_approver_group/views/res_partner.xml @@ -0,0 +1,15 @@ + + + + + res.partner.move_approve.user + res.partner + + + + + + + + diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 000000000..b8850d348 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +odoo-addon-base_tier_validation @ git+https://github.com/OCA/tier-validation.git@refs/pull/94/head#subdirectory=base_tier_validation +odoo-addon-account_move_tier_validation @ git+https://github.com/OCA/tier-validation.git@refs/pull/95/head#subdirectory=account_move_tier_validation +odoo-addon-account_move_tier_validation_approver @ git+https://github.com/OCA/tier-validation.git@refs/pull/111/head#subdirectory=account_move_tier_validation_approver