Skip to content

Syncing from upstream OCA/purchase-workflow (19.0)#2083

Merged
bt-admin merged 58 commits intobrain-tec:19.0from
OCA:19.0
Apr 14, 2026
Merged

Syncing from upstream OCA/purchase-workflow (19.0)#2083
bt-admin merged 58 commits intobrain-tec:19.0from
OCA:19.0

Conversation

@bt-admin
Copy link
Copy Markdown

bt_gitbot

alfredoavanzosc and others added 30 commits March 27, 2026 10:43
…ion to avoid problems on other searches made on same method
Currently translated at 100.0% (8 of 8 strings)

Translation: purchase-workflow-13.0/purchase-workflow-13.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-13-0/purchase-workflow-13-0-procurement_purchase_no_grouping/zh_CN/
When purchase grouping is set to no order grouping, the previously returned domain
ensured no other PO is found, but being the same domain for all will make that they
are grouped together in a batch operation, like the creation of all procurements
from a confirmed sales order.

Steps to reproduce:

* Create 2 products with MTO and different vendors.
* Add both in a sales order.
* Confirm the sales order.
* One purchase order is created for both products instead of 2, more even in this
  case that they have different vendors.

Fixes #975
procurement_purchase_no_grouping 13.0.2.0.0
…red_purchase_grouping field

procurement_purchase_no_grouping 13.0.3.0.0
Steps to reproduce:

- Create a product with MTO route and "No line grouping" product
  category.
- Create an SO with such product and quantity = 1.
- Confirm it.
- A purchase order is created with such product and qty = 1.
- Edit the sales order, and change quantity = 2.

Current behavior:

A new purchase line is created with quantity = 2, having ordered 3 units
instead of 2.

Expected behavior:

The same existing purchase line is updated with quantity = 2.

------

For solving this problem, we are going to group by procurement group
instead of simply discarding any possible line grouping.

NOTE: This makes that if you manually assign the same procurement group
to several different sales orders, the grouping will be done no matter
the grouping criteria, but this is the only way to do it without having
to put a lot of glue modules, and on standard operation mode,
procurement groups are not reused between sales orders.

TT33031
[UPD] Update procurement_purchase_no_grouping.pot

[UPD] README.rst
Currently translated at 5.8% (1 of 17 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-procurement_purchase_no_grouping/pt_BR/
procurement_purchase_no_grouping 15.0.1.0.1
Currently translated at 5.8% (1 of 17 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-procurement_purchase_no_grouping/it/
Currently translated at 100.0% (17 of 17 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-procurement_purchase_no_grouping/es/

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-15.0/purchase-workflow-15.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-procurement_purchase_no_grouping/
- Include context keys for avoiding mail operations overhead.

[BOT] post-merge updates
Currently translated at 100.0% (17 of 17 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-procurement_purchase_no_grouping/es/
[UPD] Update procurement_purchase_no_grouping.pot

[BOT] post-merge updates

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-15.0/purchase-workflow-15.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-procurement_purchase_no_grouping/
Currently translated at 100.0% (16 of 16 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-procurement_purchase_no_grouping/es/
OCA-git-bot and others added 27 commits March 27, 2026 10:43
Currently translated at 100.0% (16 of 16 strings)

Translation: purchase-workflow-16.0/purchase-workflow-16.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-procurement_purchase_no_grouping/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: purchase-workflow-17.0/purchase-workflow-17.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-procurement_purchase_no_grouping/
Currently translated at 100.0% (16 of 16 strings)

Translation: purchase-workflow-17.0/purchase-workflow-17.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-procurement_purchase_no_grouping/it/
Currently translated at 100.0% (16 of 16 strings)

Translation: purchase-workflow-17.0/purchase-workflow-17.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-procurement_purchase_no_grouping/es/
Currently translated at 43.7% (7 of 16 strings)

Translation: purchase-workflow-18.0/purchase-workflow-18.0-procurement_purchase_no_grouping
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-procurement_purchase_no_grouping/pt_BR/
Signed-off-by pedrobaeza
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

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

Translation: purchase-workflow-19.0/purchase-workflow-19.0-purchase_default_terms_conditions
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_default_terms_conditions/
@bt-admin bt-admin added the 19.0 label Apr 14, 2026
@bt-admin bt-admin merged commit e9f994c into brain-tec:19.0 Apr 14, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

❌ Patch coverage is 98.14815% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.69%. Comparing base (66d42e4) to head (129a618).
⚠️ Report is 69 commits behind head on 19.0.

Files with missing lines Patch % Lines
...curement_purchase_no_grouping/models/stock_rule.py 85.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             19.0    #2083      +/-   ##
==========================================
+ Coverage   94.45%   94.69%   +0.23%     
==========================================
  Files         105      114       +9     
  Lines        2344     2506     +162     
  Branches      213      219       +6     
==========================================
+ Hits         2214     2373     +159     
- Misses         64       65       +1     
- Partials       66       68       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.