Skip to content

Commit

Permalink
[FIX] purchase_advance_payment: tests currency
Browse files Browse the repository at this point in the history
Add cehck to make sure that order and company have different currencies.

https://hive.versada.eu/projects/devops/work_packages/19186
  • Loading branch information
AurelijaNorvaisaite committed Mar 20, 2024
1 parent 86a9193 commit 590870b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def setUpClass(cls):
"currency_id": cls.currency_usd.id,
}
)
if cls.purchase_order_1.currency_id == cls.purchase_order_1.company_id.currency_id:
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 590870b

Please sign in to comment.