Skip to content

Commit

Permalink
Merge pull request #5 from versada/fix-tests-wkf-flexible-test-scopes…
Browse files Browse the repository at this point in the history
…-avi

[FIX] purchase_advance_payment: tests currency
  • Loading branch information
AurelijaNorvaisaite authored Mar 20, 2024
2 parents 86a9193 + 2b2b75e commit 37cc8d8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions purchase_advance_payment/tests/test_purchase_advance_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ def setUpClass(cls):

# Products
cls.product_1 = cls.env["product.product"].create(
{"name": "Desk Combination", "type": "consu", "purchase_method": "purchase"}
{
"name": "Desk Combination",
"type": "consu",
"purchase_method": "purchase",
}
)
cls.product_2 = cls.env["product.product"].create(
{"name": "Conference Chair", "type": "consu", "purchase_method": "purchase"}
{
"name": "Conference Chair",
"type": "consu",
"purchase_method": "purchase",
}
)
cls.product_3 = cls.env["product.product"].create(
{
Expand Down Expand Up @@ -146,6 +154,9 @@ def setUpClass(cls):
"currency_id": cls.currency_usd.id,
}
)
# Force order currency to USD to make sure that company and
# order currencies are different.
cls.purchase_order_1.currency_id = cls.currency_usd

def test_00_with_context_payment(self):
context_payment_2 = {
Expand Down

0 comments on commit 37cc8d8

Please sign in to comment.