[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
parent 710973315a
commit 23cdd52316

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,