Skip to content

Commit

Permalink
[DON'T MERGE] test-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
sowrirajan committed Sep 3, 2024
1 parent 8008dba commit f2c2021
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions portal_sale_personal_data_only/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Contributors

- Moaad Bourhim <[email protected]>
- Jairo Llopis (`Moduon <https://www.moduon.team/>`__)
- SodexisTeam <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion portal_sale_personal_data_only/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 2 additions & 5 deletions portal_sale_personal_data_only/hooks.py
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions portal_sale_personal_data_only/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- Stefan Ungureanu
- Moaad Bourhim \<<[email protected]>\>
- Jairo Llopis ([Moduon](https://www.moduon.team/))
- SodexisTeam \<<[email protected]>\>
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
</li>
<li>Moaad Bourhim &lt;<a class="reference external" href="mailto:moaad.bourhim&#64;gmail.com">moaad.bourhim&#64;gmail.com</a>&gt;</li>
<li>Jairo Llopis (<a class="reference external" href="https://www.moduon.team/">Moduon</a>)</li>
<li>SodexisTeam &lt;<a class="reference external" href="mailto:dev&#64;sodexis.com">dev&#64;sodexis.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
4 changes: 2 additions & 2 deletions portal_sale_personal_data_only/tests/test_partner_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f2c2021

Please sign in to comment.