Skip to content

[19.0][MIG] stock_putaway_product_template: Migration to 19.0#2530

Open
gdgellatly wants to merge 21 commits intoOCA:19.0from
gdgellatly:19.0-mig-stock_putaway_product_template
Open

[19.0][MIG] stock_putaway_product_template: Migration to 19.0#2530
gdgellatly wants to merge 21 commits intoOCA:19.0from
gdgellatly:19.0-mig-stock_putaway_product_template

Conversation

@gdgellatly
Copy link
Copy Markdown

@gdgellatly gdgellatly commented Feb 28, 2026

Summary

Migration of stock_putaway_product_template module to 19.0.

  • Version bump to 19.0.1.0.0
  • Replaced the filtered() override on stock.putaway.rule with a cleaner _get_putaway_location override that filters out template rules not matching the product before calling super
  • Removed stock_location.py entirely (the filter_putaway_rule context hack is no longer needed)
  • Created an explicit product.category in tests since product_category_all was removed in v19, which caused categ_id to be False and the category domain to match all rules without a category

Test plan

  • Module installs successfully
  • Tests pass with --test-enable on database with demo data
  • Pre-commit passes

kevinkhao and others added 20 commits February 28, 2026 20:24
[UPD] Update stock_putaway_product_form.pot

[UPD] README.rst
[UPD] Update stock_putaway_product_template.pot

[UPD] README.rst
… you already set a product template

TT34143

stock_putaway_product_template 13.0.1.1.0
[UPD] Update stock_putaway_product_template.pot
…tionCase

stock_putaway_product_template 15.0.1.0.1

Translated using Weblate (Spanish)

Currently translated at 100.0% (7 of 7 strings)

Translation: stock-logistics-warehouse-15.0/stock-logistics-warehouse-15.0-stock_putaway_product_template
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_putaway_product_template/es/

[UPD] README.rst
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_putaway_product_template
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_putaway_product_template/es/
…in putaway rules.

In this module, the product template, variant and category fields were made mandatory. Actually in relocation strategies it is not mandatory to set up a product, so the above mentioned fields should not be mandatory either.

TT48457
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-warehouse-18.0/stock-logistics-warehouse-18.0-stock_putaway_product_template
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_putaway_product_template/es/
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-warehouse-18.0/stock-logistics-warehouse-18.0-stock_putaway_product_template
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_putaway_product_template/it/
Fix singleton error calling _get_putaway_strategy on a recordset
Fix tests
@gdgellatly gdgellatly force-pushed the 19.0-mig-stock_putaway_product_template branch 4 times, most recently from c237d89 to 180201b Compare February 28, 2026 21:57
@gdgellatly gdgellatly force-pushed the 19.0-mig-stock_putaway_product_template branch from 180201b to 8a4a2b1 Compare February 28, 2026 21:59
Copy link
Copy Markdown
Contributor

@dannyadair dannyadair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed the code and functionality - looks good.
The .pot file is still referencing 18.0

@gdgellatly gdgellatly marked this pull request as ready for review March 4, 2026 06:41
@rousseldenis
Copy link
Copy Markdown
Contributor

/ocabot migration stock_putaway_product_template

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Mar 4, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 4, 2026
53 tasks
@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@gdgellatly
Copy link
Copy Markdown
Author

@pedrobaeza Before this gets merged I want your opinion. I did change the overrride point because the filtered override did not work in v19 and it was confusing, however as I did it I was concerned that the original implementation was required for performance and whether that was the reason such efforts were gone to originally.

@pedrobaeza
Copy link
Copy Markdown
Member

In fact it was @sergio-teruel the author of the module. Sergio, can you please check about the new method?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.