Skip to content

[19.0][MIG] contract_sale_invoicing: Migration to 19.0#1487

Open
prayagrk wants to merge 31 commits into
OCA:19.0from
prayagrk:19.0-mig-contract_sale_invoicing
Open

[19.0][MIG] contract_sale_invoicing: Migration to 19.0#1487
prayagrk wants to merge 31 commits into
OCA:19.0from
prayagrk:19.0-mig-contract_sale_invoicing

Conversation

@prayagrk

Copy link
Copy Markdown

contract_sale_invoicing: Migration to 19.0

carlosdauden and others added 30 commits July 17, 2026 10:46
[REF] Contract Sale Invoicing: update translations

[IMP] - Assert that the predecessor is available for new link at uncancel

[RMV] - remove usless changes

[RMV] - Remove usless field recurring_invoices

after the total isolation between contract model and account analytic one.
recurring_invoices which was used to mark analytic account as contract became usless

[IMP] - P3 syntax

[IMP] - use @openupgrade.migrate() and openupgrade.logged_query

[IMP] - drop transient table in migration script
replaced contract's account_analytic_id by group_id
TT45293

Co-Authored-By: Pedro M. Baeza <pedro.baeza@tecnativa.com>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-contract_sale_invoicing
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract_sale_invoicing/
Currently translated at 100.0% (3 of 3 strings)

Translation: contract-17.0/contract-17.0-contract_sale_invoicing
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract_sale_invoicing/it/
Sale Order on 18.0 has no longer the field `analytic_account_id`. Instead, a variable distribution of multiple Analytic Accounts per Sale Order Line is possible. We adapted the module to consider only Sale Order Lines that match with 100%* on the analytic account of the contract.
The flag is not seen when doing recurrency by line, and the position
anyway is a bit weird, so let's put it with the generation type
selection. This also doesn't make sense for supplier invoices or other
kind of generation.

TT58137
…e same contract invoice

Before this commit, when a sale order was invoiced from a contract, it created a new invoice, resulting in two invoices, one for the contract and another for the sale order.
After this commit, when this new field is checked in the contract, the sale order lines are invoiced in the same invoice as the contract.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-18.0/contract-18.0-contract_sale_invoicing
Translate-URL: https://translation.odoo-community.org/projects/contract-18-0/contract-18-0-contract_sale_invoicing/
Currently translated at 100.0% (6 of 6 strings)

Translation: contract-18.0/contract-18.0-contract_sale_invoicing
Translate-URL: https://translation.odoo-community.org/projects/contract-18-0/contract-18-0-contract_sale_invoicing/it/
Currently translated at 100.0% (6 of 6 strings)

Translation: contract-18.0/contract-18.0-contract_sale_invoicing
Translate-URL: https://translation.odoo-community.org/projects/contract-18-0/contract-18-0-contract_sale_invoicing/nl/
Currently translated at 100.0% (6 of 6 strings)

Translation: contract-18.0/contract-18.0-contract_sale_invoicing
Translate-URL: https://translation.odoo-community.org/projects/contract-18-0/contract-18-0-contract_sale_invoicing/fr/
Currently translated at 100.0% (6 of 6 strings)

Translation: contract-18.0/contract-18.0-contract_sale_invoicing
Translate-URL: https://translation.odoo-community.org/projects/contract-18-0/contract-18-0-contract_sale_invoicing/sl/
@OCA-git-bot OCA-git-bot added series:19.0 mod:contract_sale_invoicing Module contract_sale_invoicing labels Jul 17, 2026
@prayagrk
prayagrk force-pushed the 19.0-mig-contract_sale_invoicing branch from ccf8c51 to 659c2c5 Compare July 17, 2026 06:35
@prayagrk
prayagrk force-pushed the 19.0-mig-contract_sale_invoicing branch from 659c2c5 to 2cddf34 Compare July 17, 2026 06:43
@prayagrk prayagrk mentioned this pull request Jul 17, 2026
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:contract_sale_invoicing Module contract_sale_invoicing series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.