mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[12.0][FIX] - contract_mandate: fix inherited method call _prepare_invoice
This commit is contained in:
@@ -32,8 +32,10 @@ class ContractContract(models.Model):
|
|||||||
self.mandate_id = False
|
self.mandate_id = False
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def _prepare_invoice(self, date_ref=False):
|
def _prepare_invoice(self, date_invoice, journal=None):
|
||||||
invoice_vals = super(ContractContract, self)._prepare_invoice(date_ref)
|
invoice_vals = super(ContractContract, self)._prepare_invoice(
|
||||||
|
date_invoice, journal
|
||||||
|
)
|
||||||
if self.mandate_id:
|
if self.mandate_id:
|
||||||
invoice_vals['mandate_id'] = self.mandate_id.id
|
invoice_vals['mandate_id'] = self.mandate_id.id
|
||||||
elif self.payment_mode_id.payment_method_id.mandate_required:
|
elif self.payment_mode_id.payment_method_id.mandate_required:
|
||||||
|
|||||||
Reference in New Issue
Block a user