@ -1,3 +1,5 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
from . import tests
@ -3,7 +3,7 @@
{
'name': 'Contract Invoicing of Pending Sales Orders',
'summary': 'Include sales to invoice in contract invoice creation',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Contract Management',
'website': 'https://github.com/oca/contract',
'author': 'Tecnativa, '
@ -0,0 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* Carlos Dauden
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
@ -0,0 +1,3 @@
This modules allows to include on the same invoice than the recurring invoice
contract, all the pending to invoice sales orders that you have with the same
analytic account.
@ -0,0 +1,8 @@
To use this module, you need to:
#. Go to Invoicing > Sales > Contracts and select or create a new contract.
#. Check *Generate recurring invoices automatically*.
#. Mark the check "Invoice Pending Sales Orders".
#. On each invoicing, system will check if there's any pending sales orders
with same analyitic account and will append the lines to the invoice being
generated.
@ -9,7 +9,8 @@ class TestContractSaleInvoicing(TestContractBase):
def setUpClass(cls):
super(TestContractSaleInvoicing, cls).setUpClass()
cls.product_so = cls.env.ref(
'product.service_order_01_product_template')
'product.product_product_1')
cls.product_so.invoice_policy = 'order'
cls.sale_order = cls.env['sale.order'].create({
'partner_id': cls.partner.id,
'partner_invoice_id': cls.partner.id,
@ -0,0 +1 @@
../../../../contract_sale_invoicing
@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)