-
-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[18.0][MIG] account_move_tier_validation_approver: Migration to 18.0
- Loading branch information
Showing
9 changed files
with
29 additions
and
27 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 |
---|---|---|
|
@@ -90,6 +90,9 @@ Contributors | |
|
||
- Lois Rilo <[email protected]> | ||
- Adrià Gil Sorribes <[email protected]> | ||
- [360ERP](https://www.360erp.com): | ||
|
||
- Kevin Khao <<[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
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,2 +1,4 @@ | ||
- Lois Rilo \<<[email protected]>\> | ||
- Adrià Gil Sorribes \<<[email protected]>\> | ||
- \[360ERP\](<https://www.360erp.com>): | ||
- Kevin Khao \<\<<[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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,20 @@ | |
from odoo.exceptions import ValidationError | ||
from odoo.tests.common import TransactionCase | ||
|
||
from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT | ||
|
||
|
||
class TestAccountMoveTierValidationApprover(TransactionCase): | ||
def setUp(self): | ||
super(TestAccountMoveTierValidationApprover, self).setUp() | ||
super().setUp() | ||
self.env = self.env(context=dict(self.env.context, **DISABLED_MAIL_CONTEXT)) | ||
self.res_partner_1 = self.env["res.partner"].create( | ||
{"name": "Wood Corner", "email": "[email protected]"} | ||
) | ||
self.product_1 = self.env["product.product"].create( | ||
{"name": "Desk Combination"} | ||
) | ||
self.currency_euro = self.env["res.currency"].search([("name", "=", "EUR")]) | ||
self.currency_usd = self.env["res.currency"].search([("name", "=", "USD")]) | ||
self.test_user_1 = self.env["res.users"].create( | ||
{"name": "User", "login": "test1", "email": "[email protected]"} | ||
) | ||
|
@@ -26,7 +29,7 @@ def setUp(self): | |
{ | ||
"move_type": "in_invoice", | ||
"partner_id": self.res_partner_1.id, | ||
"currency_id": self.currency_euro.id, | ||
"currency_id": self.currency_usd.id, | ||
"approver_id": self.test_approver.id, | ||
"invoice_line_ids": [ | ||
( | ||
|
@@ -69,7 +72,6 @@ def test_field_validation_approver(self): | |
{"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() | ||
with self.assertRaises(ValidationError): | ||
record.action_post() | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
odoo-addon-base_tier_validation @ git+https://github.com/OCA/server-ux.git@refs/pull/966/head#subdirectory=base_tier_validation | ||
odoo-addon-account_move_tier_validation @ git+https://github.com/OCA/account-invoicing.git@refs/pull/1830/head#subdirectory=account_move_tier_validation |