Syncing from upstream OCA/purchase-workflow (19.0)#2036
Merged
bt-admin merged 324 commits intobrain-tec:19.0from Feb 4, 2026
Merged
Syncing from upstream OCA/purchase-workflow (19.0)#2036bt-admin merged 324 commits intobrain-tec:19.0from
bt-admin merged 324 commits intobrain-tec:19.0from
Conversation
Currently translated at 39.1% (86 of 220 strings) Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_request Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_request/fr/
Currently translated at 1.8% (4 of 220 strings) Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_request Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_request/es_EC/
…_order_qty_existing_po
Currently translated at 29.5% (65 of 220 strings) Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_request Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_request/pt_BR/
Currently translated at 91.4% (201 of 220 strings) Translation: purchase-workflow-12.0/purchase-workflow-12.0-purchase_request Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-12-0/purchase-workflow-12-0-purchase_request/it/
Currently translated at 100.0% (223 of 223 strings) Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_request Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_request/zh_CN/
Currently translated at 100.0% (223 of 223 strings) Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_request Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_request/zh_CN/
Currently translated at 72.2% (161 of 223 strings) Translation: purchase-workflow-13.0/purchase-workflow-13.0-purchase_request Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-purchase_request/it/
New purchase request line should not be created from form view as well. Create is already disabled on list view at https://github.com/OCA/purchase-workflow/blob/13.0/purchase_request/views/purchase_request_line_view.xml#L11
Stock move is a table that could increase a lot. So, it's important avoid slow methods in the middle The constraint method `stock_move._check_company_purchase_request` compares `purchase_request_allocation.company_id` vs `stock_move.company_id` to be sure they have the same value `pra.company_id` was a related field to `purchase_request_line_id.request_id.company_id` without `store=True` Then this constraint consume a lot of time getting all these iteration of records. For that it was changed to `store=True` and an index was added to get it faster. And the method was using a loop getting company record by record. It is so slow too. It was changed directly using a query since that the ORM doesn't support `JOIN` And was added an index to `pra.stock_move_id` field to get `JOIN` faster
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.
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/
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 19.0 #2036 +/- ##
==========================================
- Coverage 95.86% 93.46% -2.40%
==========================================
Files 39 73 +34
Lines 484 2082 +1598
Branches 38 204 +166
==========================================
+ Hits 464 1946 +1482
- Misses 12 70 +58
- Partials 8 66 +58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bt_gitbot