[MIG] account_invoice_constraint_chronology: Migration to 16.0
This commit is contained in:
parent
80ac346702
commit
1104585cef
@ -3,7 +3,7 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
{
|
{
|
||||||
"name": "Account Invoice Constraint Chronology",
|
"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",
|
"author": "Odoo Community Association (OCA), ACSONE SA/NV, CorporateHub",
|
||||||
"website": "https://github.com/OCA/account-financial-tools",
|
"website": "https://github.com/OCA/account-financial-tools",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
|
@ -39,10 +39,10 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase):
|
|||||||
) as invoice_form:
|
) as invoice_form:
|
||||||
invoice_form.invoice_date = cls.today
|
invoice_form.invoice_date = cls.today
|
||||||
invoice_form.partner_id = cls.partner_2
|
invoice_form.partner_id = cls.partner_2
|
||||||
invoice_form.journal_id = cls.sale_journal
|
|
||||||
with invoice_form.invoice_line_ids.new() as line_form:
|
with invoice_form.invoice_line_ids.new() as line_form:
|
||||||
line_form.product_id = cls.product
|
line_form.product_id = cls.product
|
||||||
cls.invoice_1 = invoice_form.save()
|
cls.invoice_1 = invoice_form.save()
|
||||||
|
cls.invoice_1.update({"journal_id": cls.sale_journal})
|
||||||
cls.invoice_2 = cls.invoice_1.copy()
|
cls.invoice_2 = cls.invoice_1.copy()
|
||||||
|
|
||||||
cls.AccountMoveReversal = cls.env["account.move.reversal"]
|
cls.AccountMoveReversal = cls.env["account.move.reversal"]
|
||||||
|
Loading…
Reference in New Issue
Block a user