[MIG] contract_sale_invoicing: Migration to 17.0

This commit is contained in:
Juanjo
2024-07-25 16:03:00 +02:00
parent ef74eaeec5
commit aefe5294b1
6 changed files with 17 additions and 17 deletions

View File

@@ -42,8 +42,8 @@ Usage
To use this module, you need to:
1. Go to Invoicing > Sales > Contracts and select or create a new
contract.
1. Go to Invoicing > Customers > Customers Contracts and select or
create a new contract.
2. Check *Generate recurring invoices automatically*.
3. Mark the check "Invoice Pending Sales Orders".
4. On each invoicing, system will check if there's any pending sales
@@ -76,6 +76,7 @@ Contributors
- Carlos Dauden
- Carolina Fernandez
- Pedro M. Baeza
- Juan José Seguí
- Souheil Bejaoui <souheil.bejaoui@acsone.eu>

View File

@@ -4,7 +4,7 @@
{
"name": "Contract Invoicing of Pending Sales Orders",
"summary": "Include sales to invoice in contract invoice creation",
"version": "15.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Contract Management",
"website": "https://github.com/OCA/contract",
"author": "Tecnativa, " "Odoo Community Association (OCA)",

View File

@@ -2,4 +2,5 @@
- Carlos Dauden
- Carolina Fernandez
- Pedro M. Baeza
- Juan José Seguí
- Souheil Bejaoui \<<souheil.bejaoui@acsone.eu>\>

View File

@@ -1,6 +1,6 @@
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.
2. Check *Generate recurring invoices automatically*.
3. Mark the check "Invoice Pending Sales Orders".

View File

@@ -390,8 +390,8 @@ with the same analytic account.</p>
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Go to Invoicing &gt; Sales &gt; Contracts and select or create a new
contract.</li>
<li>Go to Invoicing &gt; Customers &gt; Customers Contracts and select or
create a new contract.</li>
<li>Check <em>Generate recurring invoices automatically</em>.</li>
<li>Mark the check “Invoice Pending Sales Orders”.</li>
<li>On each invoicing, system will check if theres 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>Carolina Fernandez</li>
<li>Pedro M. Baeza</li>
<li>Juan José Seguí</li>
</ul>
</li>
<li>Souheil Bejaoui &lt;<a class="reference external" href="mailto:souheil.bejaoui&#64;acsone.eu">souheil.bejaoui&#64;acsone.eu</a>&gt;</li>

View File

@@ -5,23 +5,20 @@
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")
class TestContractSaleInvoicing(TestContractBase):
class TestContractSaleInvoicing(BaseCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(
context=dict(
cls.env.context,
mail_create_nolog=True,
mail_create_nosubscribe=True,
mail_notrack=True,
no_reset_password=True,
tracking_disable=True,
)
cls.contract = cls.env["contract.contract"].create(
{
"name": "Test Contract",
"partner_id": cls.partner.id,
"company_id": cls.env.company.id,
}
)
cls.contract.group_id = cls.env["account.analytic.account"].search([], limit=1)
cls.product_so = cls.env.ref("product.product_product_1")