From 23cdd52316d5809c240f506c7361f1a5fb9689f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Wed, 14 Apr 2021 13:32:26 +0100 Subject: [PATCH] [FIX] account_payment_order: Fix tests After https://github.com/odoo/odoo/commit/fcaa54939e9a4f0dd5e47cd0ccffe7aa24bd451c, we need to specify the invoice date for vendor bills to be able to post it --- account_payment_order/tests/test_payment_order_outbound.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account_payment_order/tests/test_payment_order_outbound.py b/account_payment_order/tests/test_payment_order_outbound.py index 50de54b2a..b49a2a53a 100644 --- a/account_payment_order/tests/test_payment_order_outbound.py +++ b/account_payment_order/tests/test_payment_order_outbound.py @@ -4,6 +4,7 @@ from datetime import date, datetime, timedelta +from odoo import fields from odoo.exceptions import UserError, ValidationError from odoo.tests.common import TransactionCase @@ -48,6 +49,7 @@ class TestPaymentOrderOutbound(TransactionCase): "payment_mode_id": self.env.ref( "account_payment_mode.payment_mode_outbound_ct1" ).id, + "invoice_date": fields.Date.today(), "invoice_line_ids": [ ( 0,