[MIG] contract_sale_invoicing: Migration to 12.0

This commit is contained in:
sbejaoui
2018-10-25 17:49:32 +02:00
committed by Thomas Binsfeld
parent 7c2c697fdf
commit 96c34c1fee
8 changed files with 27 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models from . import models
from . import tests

View File

@@ -3,7 +3,7 @@
{ {
'name': 'Contract Invoicing of Pending Sales Orders', 'name': 'Contract Invoicing of Pending Sales Orders',
'summary': 'Include sales to invoice in contract invoice creation', 'summary': 'Include sales to invoice in contract invoice creation',
'version': '11.0.1.0.0', 'version': '12.0.1.0.0',
'category': 'Contract Management', 'category': 'Contract Management',
'website': 'https://github.com/oca/contract', 'website': 'https://github.com/oca/contract',
'author': 'Tecnativa, ' 'author': 'Tecnativa, '

View File

@@ -0,0 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* Carlos Dauden
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>

View 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.

View 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.

View File

@@ -9,7 +9,8 @@ class TestContractSaleInvoicing(TestContractBase):
def setUpClass(cls): def setUpClass(cls):
super(TestContractSaleInvoicing, cls).setUpClass() super(TestContractSaleInvoicing, cls).setUpClass()
cls.product_so = cls.env.ref( 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({ cls.sale_order = cls.env['sale.order'].create({
'partner_id': cls.partner.id, 'partner_id': cls.partner.id,
'partner_invoice_id': cls.partner.id, 'partner_invoice_id': cls.partner.id,

View File

@@ -0,0 +1 @@
../../../../contract_sale_invoicing

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)