Skip to content

Commit

Permalink
Merge PR #1001 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 9, 2023
2 parents b920471 + 6b3d232 commit fd5d46a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contract/models/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ def recurring_create_invoice(self):
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:
invoices = self._recurring_create_invoice()
for invoice in invoices:
self.message_post(
body=_(
"Contract manually invoiced: "
Expand All @@ -596,7 +596,7 @@ def recurring_create_invoice(self):
"rec_id": invoice.id,
}
)
return invoice
return invoices

@api.model
def _invoice_followers(self, invoices):
Expand Down

0 comments on commit fd5d46a

Please sign in to comment.