From 6e51f4cdd9fcae53561378402dc7a3fcf319f4b9 Mon Sep 17 00:00:00 2001 From: Olivier Colson <oco@odoo.com> Date: Wed, 6 Jun 2018 15:12:34 +0200 Subject: [PATCH] [FIX] purchase: anglosaxon reconciliation test: set proper date to generated credit note The date of the invoice is used for currency conversion in anglosaxon stock valuation. Before this fix, the tests crashed between june 6th and december 31th, as the demo data define a currency rate for USD on june 6th. Using the proper date on the credit note ensures the good rate (the one in application when making the credit) is always applied. --- .../purchase/tests/test_anglo_saxon_valuation_reconciliation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/purchase/tests/test_anglo_saxon_valuation_reconciliation.py b/addons/purchase/tests/test_anglo_saxon_valuation_reconciliation.py index ab20b43b5242..d26d2a43edb2 100644 --- a/addons/purchase/tests/test_anglo_saxon_valuation_reconciliation.py +++ b/addons/purchase/tests/test_anglo_saxon_valuation_reconciliation.py @@ -131,6 +131,7 @@ class TestValuationReconciliation(ValuationReconciliationTestCase): 'description': 'test_invoice_shipment_refund', 'filter_refund': 'cancel', 'date': '2018-03-15', + 'date_invoice': '2018-03-15', }) refund_invoice_wiz.invoice_refund() -- GitLab