[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 David Ramia
parent 1a195aa55d
commit 4e95a4f842
3 changed files with 15 additions and 11 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

@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-04-10 16:46+0000\n"
"PO-Revision-Date: 2021-04-15 17:46+0000\n"
"Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n"
"Language-Team: none\n"
"Language: fr_FR\n"
@@ -168,7 +168,7 @@ msgstr "Tout"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_attachment_count
msgid "Attachment Count"
msgstr ""
msgstr "Nbre de pièces jointes"
#. module: account_payment_order
#: model_terms:ir.ui.view,arch_db:account_payment_order.view_attachment_simplified_form
@@ -499,7 +499,7 @@ msgstr "Date fixe"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_follower_ids
msgid "Followers"
msgstr ""
msgstr "Abonnés"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_channel_ids
@@ -670,7 +670,7 @@ msgstr "Ref Facture"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_is_follower
msgid "Is Follower"
msgstr ""
msgstr "Est abonné"
#. module: account_payment_order
#: model:ir.model,name:account_payment_order.model_account_journal
@@ -685,7 +685,7 @@ msgstr "Pièces comptables"
#. module: account_payment_order
#: model:ir.model,name:account_payment_order.model_account_move
msgid "Journal Entry"
msgstr ""
msgstr "Ecriture"
#. module: account_payment_order
#: model:ir.model,name:account_payment_order.model_account_move_line
@@ -772,7 +772,7 @@ msgstr "Lié à une facture ou à un avoir"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_main_attachment_id
msgid "Main Attachment"
msgstr ""
msgstr "Pièce jointe principale"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_has_error
@@ -1120,7 +1120,7 @@ msgstr "Ligne bancaire du paiement %s"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_move_line__payment_line_ids
msgid "Payment lines"
msgstr ""
msgstr "Lignes de paiement"
#. module: account_payment_order
#: code:addons/account_payment_order/models/account_payment_order.py:0
@@ -1240,7 +1240,7 @@ msgstr "Mouvements cibles"
#. module: account_payment_order
#: model:ir.model,name:account_payment_order.model_report_account_payment_order_print_account_payment_order_main
msgid "Technical model for printing payment order"
msgstr ""
msgstr "Modèle pour l'impression de l'ordre de paiement"
#. module: account_payment_order
#: code:addons/account_payment_order/models/account_payment_order.py:0
@@ -1312,6 +1312,8 @@ msgid ""
"This option helps enforcing the use of payment orders for some payment "
"methods."
msgstr ""
"Cette option permet d'imposer l'utilisation d'ordres de paiement pour "
"certains modes de paiement."
#. module: account_payment_order
#: model_terms:ir.ui.view,arch_db:account_payment_order.account_invoice_payment_line_multi_form
@@ -1380,12 +1382,12 @@ msgstr "Type du filtre sur la date"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_unread
msgid "Unread Messages"
msgstr ""
msgstr "Messages non lus"
#. module: account_payment_order
#: model:ir.model.fields,field_description:account_payment_order.field_account_payment_order__message_unread_counter
msgid "Unread Messages Counter"
msgstr ""
msgstr "Nbre de messages non lus"
#. module: account_payment_order
#: model_terms:ir.ui.view,arch_db:account_payment_order.print_account_payment_order_document

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,