diff --git a/contract/models/contract.py b/contract/models/contract.py
index 1445f2f73..ca15ec89b 100644
--- a/contract/models/contract.py
+++ b/contract/models/contract.py
@@ -524,17 +524,18 @@ class ContractContract(models.Model):
This method triggers the creation of the next invoices of the contracts
even if their next invoicing date is in the future.
"""
- invoice = self._recurring_create_invoice()
- if invoice:
- self.message_post(
- body=_(
- 'Contract manually invoiced: '
- 'Invoice'
- ''
+ invoices = self._recurring_create_invoice()
+ if invoices:
+ for invoice in invoices:
+ self.message_post(
+ body=_(
+ 'Contract manually invoiced: '
+ 'Invoice'
+ ''
+ )
+ % (invoice._name, invoice.id)
)
- % (invoice._name, invoice.id)
- )
- return invoice
+ return invoices
@api.multi
def _recurring_create_invoice(self, date_ref=False):