-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sowrirajan
committed
Sep 3, 2024
1 parent
8008dba
commit f2c2021
Showing
7 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ Contributors | |
|
||
- Moaad Bourhim <[email protected]> | ||
- Jairo Llopis (`Moduon <https://www.moduon.team/>`__) | ||
- SodexisTeam <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
- Stefan Ungureanu | ||
- Moaad Bourhim \<<[email protected]>\> | ||
- Jairo Llopis ([Moduon](https://www.moduon.team/)) | ||
- SodexisTeam \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |