mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract_sale_invoicing: Migration to 17.0
This commit is contained in:
@@ -42,8 +42,8 @@ Usage
|
|||||||
|
|
||||||
To use this module, you need to:
|
To use this module, you need to:
|
||||||
|
|
||||||
1. Go to Invoicing > Sales > Contracts and select or create a new
|
1. Go to Invoicing > Customers > Customers Contracts and select or
|
||||||
contract.
|
create a new contract.
|
||||||
2. Check *Generate recurring invoices automatically*.
|
2. Check *Generate recurring invoices automatically*.
|
||||||
3. Mark the check "Invoice Pending Sales Orders".
|
3. Mark the check "Invoice Pending Sales Orders".
|
||||||
4. On each invoicing, system will check if there's any pending sales
|
4. On each invoicing, system will check if there's any pending sales
|
||||||
@@ -76,6 +76,7 @@ Contributors
|
|||||||
- Carlos Dauden
|
- Carlos Dauden
|
||||||
- Carolina Fernandez
|
- Carolina Fernandez
|
||||||
- Pedro M. Baeza
|
- Pedro M. Baeza
|
||||||
|
- Juan José Seguí
|
||||||
|
|
||||||
- Souheil Bejaoui <souheil.bejaoui@acsone.eu>
|
- Souheil Bejaoui <souheil.bejaoui@acsone.eu>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,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": "15.0.1.0.0",
|
"version": "17.0.1.0.0",
|
||||||
"category": "Contract Management",
|
"category": "Contract Management",
|
||||||
"website": "https://github.com/OCA/contract",
|
"website": "https://github.com/OCA/contract",
|
||||||
"author": "Tecnativa, " "Odoo Community Association (OCA)",
|
"author": "Tecnativa, " "Odoo Community Association (OCA)",
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
- Carlos Dauden
|
- Carlos Dauden
|
||||||
- Carolina Fernandez
|
- Carolina Fernandez
|
||||||
- Pedro M. Baeza
|
- Pedro M. Baeza
|
||||||
|
- Juan José Seguí
|
||||||
- Souheil Bejaoui \<<souheil.bejaoui@acsone.eu>\>
|
- Souheil Bejaoui \<<souheil.bejaoui@acsone.eu>\>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
To use this module, you need to:
|
To use this module, you need to:
|
||||||
|
|
||||||
1. Go to Invoicing \> Sales \> Contracts and select or create a new
|
1. Go to Invoicing \> Customers \> Customers Contracts and select or create a new
|
||||||
contract.
|
contract.
|
||||||
2. Check *Generate recurring invoices automatically*.
|
2. Check *Generate recurring invoices automatically*.
|
||||||
3. Mark the check "Invoice Pending Sales Orders".
|
3. Mark the check "Invoice Pending Sales Orders".
|
||||||
|
|||||||
@@ -390,8 +390,8 @@ with the same analytic account.</p>
|
|||||||
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
||||||
<p>To use this module, you need to:</p>
|
<p>To use this module, you need to:</p>
|
||||||
<ol class="arabic simple">
|
<ol class="arabic simple">
|
||||||
<li>Go to Invoicing > Sales > Contracts and select or create a new
|
<li>Go to Invoicing > Customers > Customers Contracts and select or
|
||||||
contract.</li>
|
create a new contract.</li>
|
||||||
<li>Check <em>Generate recurring invoices automatically</em>.</li>
|
<li>Check <em>Generate recurring invoices automatically</em>.</li>
|
||||||
<li>Mark the check “Invoice Pending Sales Orders”.</li>
|
<li>Mark the check “Invoice Pending Sales Orders”.</li>
|
||||||
<li>On each invoicing, system will check if there’s any pending sales
|
<li>On each invoicing, system will check if there’s any pending sales
|
||||||
@@ -422,6 +422,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|||||||
<li>Carlos Dauden</li>
|
<li>Carlos Dauden</li>
|
||||||
<li>Carolina Fernandez</li>
|
<li>Carolina Fernandez</li>
|
||||||
<li>Pedro M. Baeza</li>
|
<li>Pedro M. Baeza</li>
|
||||||
|
<li>Juan José Seguí</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>Souheil Bejaoui <<a class="reference external" href="mailto:souheil.bejaoui@acsone.eu">souheil.bejaoui@acsone.eu</a>></li>
|
<li>Souheil Bejaoui <<a class="reference external" href="mailto:souheil.bejaoui@acsone.eu">souheil.bejaoui@acsone.eu</a>></li>
|
||||||
|
|||||||
@@ -5,23 +5,20 @@
|
|||||||
|
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
|
||||||
from odoo.addons.contract.tests.test_contract import TestContractBase
|
from odoo.addons.base.tests.common import BaseCommon
|
||||||
|
|
||||||
|
|
||||||
@freeze_time("2016-02-28")
|
@freeze_time("2016-02-28")
|
||||||
class TestContractSaleInvoicing(TestContractBase):
|
class TestContractSaleInvoicing(BaseCommon):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
super().setUpClass()
|
super().setUpClass()
|
||||||
cls.env = cls.env(
|
cls.contract = cls.env["contract.contract"].create(
|
||||||
context=dict(
|
{
|
||||||
cls.env.context,
|
"name": "Test Contract",
|
||||||
mail_create_nolog=True,
|
"partner_id": cls.partner.id,
|
||||||
mail_create_nosubscribe=True,
|
"company_id": cls.env.company.id,
|
||||||
mail_notrack=True,
|
}
|
||||||
no_reset_password=True,
|
|
||||||
tracking_disable=True,
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
cls.contract.group_id = cls.env["account.analytic.account"].search([], limit=1)
|
cls.contract.group_id = cls.env["account.analytic.account"].search([], limit=1)
|
||||||
cls.product_so = cls.env.ref("product.product_product_1")
|
cls.product_so = cls.env.ref("product.product_product_1")
|
||||||
|
|||||||
Reference in New Issue
Block a user