2
0

[MIG] account_invoice_constraint_chronology: Migration to 16.0

This commit is contained in:
Zina Rasoamanana 2022-10-06 17:05:07 +02:00
parent 80ac346702
commit 1104585cef
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Account Invoice Constraint Chronology",
"version": "15.0.1.0.1",
"version": "16.0.1.0.1",
"author": "Odoo Community Association (OCA), ACSONE SA/NV, CorporateHub",
"website": "https://github.com/OCA/account-financial-tools",
"license": "AGPL-3",

View File

@ -39,10 +39,10 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase):
) as invoice_form:
invoice_form.invoice_date = cls.today
invoice_form.partner_id = cls.partner_2
invoice_form.journal_id = cls.sale_journal
with invoice_form.invoice_line_ids.new() as line_form:
line_form.product_id = cls.product
cls.invoice_1 = invoice_form.save()
cls.invoice_1.update({"journal_id": cls.sale_journal})
cls.invoice_2 = cls.invoice_1.copy()
cls.AccountMoveReversal = cls.env["account.move.reversal"]