Skip to content

[20.0][MIG] purchase_force_invoiced: Migration to 20.0 - #3316

Open
JustineBlanchet wants to merge 55 commits into
OCA:20.0from
Omydoo:20.0-mig-purchase_force_invoiced
Open

JustineBlanchet wants to merge 55 commits into
OCA:20.0from
Omydoo:20.0-mig-purchase_force_invoiced

Conversation

@JustineBlanchet

Copy link
Copy Markdown

Standard migration of purchase_force_invoiced to 20.0 (history kept from 19.0, pre-commit auto fixes, then the migration commit).

JordiBForgeFlow and others added 30 commits November 19, 2026 11:00
Co-Authored-By: Eric @ Elico Corp <eric.caudal@elico-corp.com>
The purchase BI analysis is not taking into account the
"Force invoiced" check for showing their quantity to be billed, so it
gives contradictory information from the search filter and the pivot.

This commit adapts the SQL report for taking this into account.
Set force_invoiced field invisible on RFQs (state not in purchase or done)
force_invoiced is now tracked in chatter
- Switch to setUpClass for avoiding repeat the same setup for each test.
- Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (4 of 4 strings)

Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_force_invoiced
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_force_invoiced/it/
* Reset qty_to_invoice on lines of force invoiced orders
* Adapt SQL report override to the use of odoo.tools.sql.SQL

Co-authored-by: Stefan Rijnhart <stefan@opener.amsterdam>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_force_invoiced
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_force_invoiced/it/
…tatus

Before v17 migration, if you wanted to force invoice status purchase
order must be locked. After that migration, condition was changed to
the opposite one (purchase order must be unlocked), probably due to
an error migration.

This restores original behavior, that shouldn't be changed. Also,
restoring old behavior makes the addon coherent with current usage
documentation, that's been never changed.
OCA-git-bot and others added 24 commits November 19, 2026 11:00
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_force_invoiced
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_force_invoiced/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: purchase-workflow-19.0/purchase-workflow-19.0-purchase_force_invoiced
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_force_invoiced/sl/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-19.0/purchase-workflow-19.0-purchase_force_invoiced
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_force_invoiced/
Currently translated at 100.0% (9 of 9 strings)

Translation: purchase-workflow-19.0/purchase-workflow-19.0-purchase_force_invoiced
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_force_invoiced/it/
@oca-cla-bot

oca-cla-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@OCA-git-bot OCA-git-bot added mod:purchase_force_invoiced Module purchase_force_invoiced series:20.0 labels Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:purchase_force_invoiced Module purchase_force_invoiced series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.