mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract_sale_invoicing: Migration to 12.0
This commit is contained in:
committed by
Thomas Binsfeld
parent
7c2c697fdf
commit
96c34c1fee
@@ -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, '
|
||||
|
||||
4
contract_sale_invoicing/readme/CONTRIBUTORS.rst
Normal file
4
contract_sale_invoicing/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,4 @@
|
||||
* `Tecnativa <https://www.tecnativa.com>`_:
|
||||
|
||||
* Carlos Dauden
|
||||
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
|
||||
3
contract_sale_invoicing/readme/DESCRIPTION.rst
Normal file
3
contract_sale_invoicing/readme/DESCRIPTION.rst
Normal file
@@ -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.
|
||||
8
contract_sale_invoicing/readme/USAGE.rst
Normal file
8
contract_sale_invoicing/readme/USAGE.rst
Normal file
@@ -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
|
||||
6
setup/contract_sale_invoicing/setup.py
Normal file
6
setup/contract_sale_invoicing/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user