mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[MIG] account_payment_order_notification: Migration to 14.0
TT40457
This commit is contained in:
committed by
Yadier A. De Quesada
parent
143f2a7e2b
commit
d0f4e1b67c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user