[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) <lpe@odoo.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user