Browse Source

Update contract_mandate/models/contract.py

Co-Authored-By: Pedro M. Baeza <pedro.baeza@tecnativa.com>
pull/401/head
Bejaoui Souheil 5 years ago
committed by GitHub
parent
commit
7be0ce4d94
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      contract_mandate/models/contract.py

2
contract_mandate/models/contract.py

@ -34,7 +34,7 @@ class ContractContract(models.Model):
@api.multi @api.multi
def _prepare_invoice(self, date_invoice, journal=None): def _prepare_invoice(self, date_invoice, journal=None):
invoice_vals = super(ContractContract, self)._prepare_invoice( invoice_vals = super(ContractContract, self)._prepare_invoice(
date_invoice, journal
date_invoice, journal=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

Loading…
Cancel
Save