Browse Source

[FIX] - log message for invoice creation only when there is an invoice

pull/414/head
sbejaoui 5 years ago
parent
commit
237f154084
  1. 4
      contract/models/contract.py

4
contract/models/contract.py

@ -453,10 +453,12 @@ class ContractContract(models.Model):
even if their next invoicing date is in the future.
"""
invoice = self._recurring_create_invoice()
if invoice:
self.message_post(
body=_(
'Contract manually invoiced: '
'<a href="#" data-oe-model="%s" data-oe-id="%s">Invoice</a>'
'<a href="#" data-oe-model="%s" data-oe-id="%s">Invoice'
'</a>'
)
% (invoice._name, invoice.id)
)

Loading…
Cancel
Save