Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] sale_advance_payment: tests currency #9

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sale_advance_payment/tests/test_sale_advance_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ 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.sale_order_1.currency_id = cls.currency_usd
# default currency_id for wizard is from pricelist so making
# sure the pricelist currency is the same as in order.
cls.sale_order_1.pricelist_id.currency_id = cls.currency_usd

def test_01_sale_advance_payment(self):
self.assertEqual(
Expand Down
Loading