From f2c20215d6fb77571d98514c019fa3a1fe872ec9 Mon Sep 17 00:00:00 2001 From: sowrirajan Date: Tue, 3 Sep 2024 15:16:51 +0530 Subject: [PATCH] [DON'T MERGE] test-requirements.txt --- portal_sale_personal_data_only/README.rst | 1 + portal_sale_personal_data_only/__manifest__.py | 2 +- portal_sale_personal_data_only/hooks.py | 7 ++----- portal_sale_personal_data_only/readme/CONTRIBUTORS.md | 1 + .../static/description/index.html | 1 + .../tests/test_partner_access.py | 4 ++-- test-requirements.txt | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/portal_sale_personal_data_only/README.rst b/portal_sale_personal_data_only/README.rst index 9913dc6e82c7..afcb286b7d9e 100644 --- a/portal_sale_personal_data_only/README.rst +++ b/portal_sale_personal_data_only/README.rst @@ -82,6 +82,7 @@ Contributors - Moaad Bourhim - Jairo Llopis (`Moduon `__) +- SodexisTeam Maintainers ----------- diff --git a/portal_sale_personal_data_only/__manifest__.py b/portal_sale_personal_data_only/__manifest__.py index ee197a0d533e..3f937644a89f 100644 --- a/portal_sale_personal_data_only/__manifest__.py +++ b/portal_sale_personal_data_only/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Portal Sale Personal Data Only", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "Sale", "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/sale-workflow", diff --git a/portal_sale_personal_data_only/hooks.py b/portal_sale_personal_data_only/hooks.py index 505a118afcd6..5236c338e9d3 100644 --- a/portal_sale_personal_data_only/hooks.py +++ b/portal_sale_personal_data_only/hooks.py @@ -1,17 +1,14 @@ # Copyright 2019 Tecnativa - David Vidal # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -from odoo import SUPERUSER_ID, api -def post_init_hook(cr, registry, vals=None): +def post_init_hook(env): """Archive the ir.rules we want to override""" - env = api.Environment(cr, SUPERUSER_ID, {}) env.ref("sale.sale_order_rule_portal").active = False env.ref("sale.sale_order_line_rule_portal").active = False -def uninstall_hook(cr, registry, vals=None): +def uninstall_hook(env): """Unarchive the overriden ir.rules""" - env = api.Environment(cr, SUPERUSER_ID, {}) env.ref("sale.sale_order_rule_portal").active = True env.ref("sale.sale_order_line_rule_portal").active = True diff --git a/portal_sale_personal_data_only/readme/CONTRIBUTORS.md b/portal_sale_personal_data_only/readme/CONTRIBUTORS.md index 47ea94344a3e..ee580bee48c7 100644 --- a/portal_sale_personal_data_only/readme/CONTRIBUTORS.md +++ b/portal_sale_personal_data_only/readme/CONTRIBUTORS.md @@ -5,3 +5,4 @@ - Stefan Ungureanu - Moaad Bourhim \<\> - Jairo Llopis ([Moduon](https://www.moduon.team/)) +- SodexisTeam \<\> \ No newline at end of file diff --git a/portal_sale_personal_data_only/static/description/index.html b/portal_sale_personal_data_only/static/description/index.html index 98da09d72fd3..c8342605292d 100644 --- a/portal_sale_personal_data_only/static/description/index.html +++ b/portal_sale_personal_data_only/static/description/index.html @@ -429,6 +429,7 @@

Contributors

  • Moaad Bourhim <moaad.bourhim@gmail.com>
  • Jairo Llopis (Moduon)
  • +
  • SodexisTeam <dev@sodexis.com>
  • diff --git a/portal_sale_personal_data_only/tests/test_partner_access.py b/portal_sale_personal_data_only/tests/test_partner_access.py index c6cf24aad1f5..99ed93de42bf 100644 --- a/portal_sale_personal_data_only/tests/test_partner_access.py +++ b/portal_sale_personal_data_only/tests/test_partner_access.py @@ -4,11 +4,11 @@ from odoo.tests.common import Form, tagged -from odoo.addons.account.tests.common import TestAccountReconciliationCommon +from odoo.addons.account.tests.common import AccountTestInvoicingCommon @tagged("post_install", "-at_install") -class TestPartnerAccess(TestAccountReconciliationCommon): +class TestPartnerAccess(AccountTestInvoicingCommon): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/test-requirements.txt b/test-requirements.txt index 66bc2cbae3f9..3273bf82a189 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +1 @@ -odoo_test_helper +odoo-addon-portal_account_personal_data_only @ git+https://github.com/OCA/account-invoicing.git@refs/pull/1787/head#subdirectory=portal_account_personal_data_only