From 88a00ef4cb0199920d66d77d2cbbf09f0f09606e Mon Sep 17 00:00:00 2001 From: Hughes Damry Date: Tue, 30 Jun 2020 09:47:29 +0200 Subject: [PATCH] FIX missing date in invoice The second invoice created has no explicit so taking the current date could lead to failing tests because the invoice is out of search as the the setup sets date_from as time.strftime("%Y-%m-01") and date_to as time.strftime("%Y-%m-28"). So i choose the easy way by setting an explicit date for the invoice. --- account_financial_report/__manifest__.py | 2 +- account_financial_report/tests/test_vat_report.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index 2a8c29d3..7f5e97d8 100644 --- a/account_financial_report/__manifest__.py +++ b/account_financial_report/__manifest__.py @@ -5,7 +5,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Account Financial Reports", - "version": "13.0.1.1.1", + "version": "13.0.1.2.0", "category": "Reporting", "summary": "OCA Financial Reports", "author": "Camptocamp SA," diff --git a/account_financial_report/tests/test_vat_report.py b/account_financial_report/tests/test_vat_report.py index 49952b33..e5671835 100644 --- a/account_financial_report/tests/test_vat_report.py +++ b/account_financial_report/tests/test_vat_report.py @@ -166,6 +166,7 @@ class TestVATReport(common.TransactionCase): self.env["account.move"].with_context(default_type="out_invoice") ) move_form.partner_id = self.env.ref("base.res_partner_2") + move_form.invoice_date = time.strftime("%Y-%m-04") with move_form.invoice_line_ids.new() as line_form: line_form.product_id = self.env.ref("product.product_product_4") line_form.quantity = 1.0