[MIG] account_payment_order_notification: Migration to 14.0

TT40457
This commit is contained in:
Víctor Martínez
2022-11-14 08:29:43 +01:00
committed by Yadier A. De Quesada
parent 143f2a7e2b
commit d0f4e1b67c
11 changed files with 36 additions and 29 deletions

View File

@@ -20,9 +20,9 @@ class TestAccountPaymentOrderNotification(common.SavepointCase):
)
cls.mt_comment = cls.env.ref("mail.mt_comment")
def _create_invoice(self, partner, invoice_type="out_invoice"):
def _create_invoice(self, partner, move_type="out_invoice"):
invoice_form = Form(
self.env["account.move"].with_context(default_type=invoice_type)
self.env["account.move"].with_context(default_move_type=move_type)
)
invoice_form.partner_id = partner
invoice_form.payment_mode_id = self.payment_mode