mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[16.0][FIX] contract: invoice message create
This commit is contained in:
committed by
Christopher Rogos
parent
86cfbe90a2
commit
4471c5b01d
@@ -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
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/contract/tree/16.0/contract"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/contract&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module enables contracts management with recurring
|
||||
|
||||
Reference in New Issue
Block a user