Browse Source

[MIG] contract_sale_invoicing: Migration to 12.0

pull/340/head
sbejaoui 6 years ago
committed by Maxime Chambreuil
parent
commit
52ebfa03aa
  1. 2
      contract_sale_invoicing/__init__.py
  2. 2
      contract_sale_invoicing/__manifest__.py
  3. 4
      contract_sale_invoicing/readme/CONTRIBUTORS.rst
  4. 3
      contract_sale_invoicing/readme/DESCRIPTION.rst
  5. 8
      contract_sale_invoicing/readme/USAGE.rst
  6. 3
      contract_sale_invoicing/tests/test_contract_sale_invoicing.py
  7. 1
      setup/contract_sale_invoicing/odoo/addons/contract_sale_invoicing
  8. 6
      setup/contract_sale_invoicing/setup.py

2
contract_sale_invoicing/__init__.py

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

2
contract_sale_invoicing/__manifest__.py

@ -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

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

3
contract_sale_invoicing/readme/DESCRIPTION.rst

@ -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

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

3
contract_sale_invoicing/tests/test_contract_sale_invoicing.py

@ -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,

1
setup/contract_sale_invoicing/odoo/addons/contract_sale_invoicing

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

6
setup/contract_sale_invoicing/setup.py

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