Skip to content

Commit

Permalink
Merge PR #619 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 16, 2023
2 parents ebf70a1 + 69dcb81 commit bbeb7cd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ def setUp(self):
self.now = fields.Datetime.now()
self.currency_eur = self.env.ref("base.EUR")
self.currency_usd = self.env.ref("base.USD")
self.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
self.company = self.env.company
self.env.cr.execute(
"UPDATE res_company SET currency_id = %s WHERE id = %s",
(self.env.ref("base.USD").id, self.company.id),
)
# Activate EUR for unit test, by default is not active
self.currency_eur.active = True
self.sample_statement_map = self.env.ref(
Expand Down

0 comments on commit bbeb7cd

Please sign in to comment.