Skip to content
Snippets Groups Projects
Commit 93d8f4f8 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[MERGE] forward port of branch saas-6 up to 6b7caa0b

parents cce3fce3 6b7caa0b
Branches
Tags
No related merge requests found
......@@ -262,9 +262,9 @@ class TestReconciliation(AccountingTestCase):
# will lead to an exchange loss, that should be handled correctly within the journal items.
cr, uid = self.cr, self.uid
# We update the currency rate of the currency USD in order to force the gain/loss exchanges in next steps
self.res_currency_rate_model.create(cr, uid, {
rateUSDbis_id = self.registry("ir.model.data").get_object_reference(self.cr, self.uid, "base", "rateUSDbis")[1]
self.res_currency_rate_model.write(cr, uid, rateUSDbis_id, {
'name': time.strftime('%Y-%m-%d') + ' 00:00:00',
'currency_id': self.currency_usd_id,
'rate': 0.033,
})
# We create a customer invoice of 2.00 USD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment