diff --git a/contract/README.rst b/contract/README.rst index faf519d21..51b61c927 100644 --- a/contract/README.rst +++ b/contract/README.rst @@ -7,7 +7,7 @@ Recurring - Contracts Management !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:5171978e403e07b0071177c86248c4d1c51c456d9de876e53ccc2159dce05d72 + !! source digest: sha256:870eb5ef4a75e77c81e61000a359c9564347edb98cdb17636574ab3adf0849b2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 71eeef0c3..1e3d7af40 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -11,7 +11,7 @@ { "name": "Recurring - Contracts Management", - "version": "16.0.1.1.0", + "version": "16.0.1.1.1", "category": "Contract Management", "license": "AGPL-3", "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)", diff --git a/contract/models/contract.py b/contract/models/contract.py index ecaeee56b..260906e98 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -580,8 +580,8 @@ 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: + invoices = self._recurring_create_invoice() + for invoice in invoices: self.message_post( body=_( "Contract manually invoiced: " @@ -596,7 +596,7 @@ class ContractContract(models.Model): "rec_id": invoice.id, } ) - return invoice + return invoices @api.model def _invoice_followers(self, invoices): diff --git a/contract/static/description/index.html b/contract/static/description/index.html index ca060f8be..9ce4dbec5 100644 --- a/contract/static/description/index.html +++ b/contract/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:5171978e403e07b0071177c86248c4d1c51c456d9de876e53ccc2159dce05d72 +!! source digest: sha256:870eb5ef4a75e77c81e61000a359c9564347edb98cdb17636574ab3adf0849b2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Production/Stable License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runboat

This module enables contracts management with recurring