[FIX] account_payment_order: Fix tests

After fcaa54939e, we need to specify the invoice date for vendor bills to be able to post it
This commit is contained in:
João Marques
2021-04-14 13:32:26 +01:00
committed by Pedro M. Baeza
parent e30330b5cb
commit e2401a13a3
2 changed files with 3 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
{
"name": "Account Payment Order",
"version": "14.0.1.0.2",
"version": "14.0.1.0.3",
"license": "AGPL-3",
"author": "ACSONE SA/NV, "
"Therp BV, "

View File

@@ -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,