Skip to content

Commit

Permalink
Merge PR #401 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
OCA-git-bot committed Oct 24, 2019
2 parents c55e5f5 + 7be0ce4 commit bf5e708
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contract_mandate/models/contract.py
Expand Up @@ -32,8 +32,10 @@ def _onchange_payment_mode_id(self):
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:
Expand Down

0 comments on commit bf5e708

Please sign in to comment.