Browse Source

Merge PR #401 into 12.0

Signed-off-by sbidoul
pull/403/head
OCA-git-bot 5 years ago
parent
commit
bf5e708e8c
  1. 6
      contract_mandate/models/contract.py

6
contract_mandate/models/contract.py

@ -32,8 +32,10 @@ class ContractContract(models.Model):
self.mandate_id = False
@api.multi
def _prepare_invoice(self, date_ref=False):
invoice_vals = super(ContractContract, self)._prepare_invoice(date_ref)
def _prepare_invoice(self, date_invoice, journal=None):
invoice_vals = super(ContractContract, self)._prepare_invoice(
date_invoice, journal=journal
)
if self.mandate_id:
invoice_vals['mandate_id'] = self.mandate_id.id
elif self.payment_mode_id.payment_method_id.mandate_required:

Loading…
Cancel
Save