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

[15.0][FIX] account_invoice_report_grouped_by_picking: Make tests resilient #288

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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class TestAccountInvoiceGroupPicking(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestAccountInvoiceGroupPicking, cls).setUpClass()
cls.currency_usd = cls.env.ref("base.USD")
cls.currency_usd.active = True
# Make sure the currency of the company is USD, as this not always happens
# To be removed in V17: https://github.com/odoo/odoo/pull/107113
cls.company = cls.env.company
cls.env.cr.execute(
"UPDATE res_company SET currency_id = %s WHERE id = %s",
[cls.env.ref("base.USD").id, cls.company.id],
)
cls.product = cls.env["product.product"].create(
{
"name": "Product for test",
Expand Down
Loading