From 56f32b1dab94580d0d18e231daa6d4ffcfc394bc Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Thu, 2 Jan 2020 14:07:17 +0000 Subject: [PATCH] [FIX] account: date makes test crash Before this commit, the corrected test crashed when the current date was before the arbitrary dates of the test because the wrong exchange rate was taken After this commit, the test passes closes odoo/odoo#42671 X-original-commit: 5867e9bf0cc745d7b1b3dcf76bc94567e859cff7 Signed-off-by: Lucas Perais (lpe) --- addons/account/tests/test_reconciliation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/account/tests/test_reconciliation.py b/addons/account/tests/test_reconciliation.py index d04e641f100..e1cd2c627c9 100644 --- a/addons/account/tests/test_reconciliation.py +++ b/addons/account/tests/test_reconciliation.py @@ -890,6 +890,7 @@ class TestReconciliationExec(TestAccountReconciliationCommon): ) payment = self.env['account.payment'].create({ + 'payment_date': time.strftime('%Y') + '-07-15', 'payment_type': 'inbound', 'payment_method_id': self.env.ref('account.account_payment_method_manual_in').id, 'partner_type': 'customer', @@ -1783,6 +1784,7 @@ class TestReconciliationExec(TestAccountReconciliationCommon): inv2 = self.create_invoice(type="out_refund", invoice_amount=400, currency_id=self.currency_usd_id) payment = self.env['account.payment'].create({ + 'payment_date': time.strftime('%Y') + '-07-15', 'payment_method_id': self.inbound_payment_method.id, 'payment_type': 'inbound', 'partner_type': 'customer', @@ -1850,6 +1852,7 @@ class TestReconciliationExec(TestAccountReconciliationCommon): inv2 = self.create_invoice(type="out_refund", invoice_amount=225, currency_id=self.currency_usd_id) payment = self.env['account.payment'].create({ + 'payment_date': time.strftime('%Y') + '-07-15', 'payment_method_id': self.inbound_payment_method.id, 'payment_type': 'inbound', 'partner_type': 'customer',