Skip to content

[19.0][MIG] stock_quantity_history_location: Migration to 19.0 - #521

Open
Sadiq-OSI wants to merge 48 commits into
OCA:19.0from
Sadiq-OSI:work/migrate-stock-quantity-history-location-19
Open

[19.0][MIG] stock_quantity_history_location: Migration to 19.0#521
Sadiq-OSI wants to merge 48 commits into
OCA:19.0from
Sadiq-OSI:work/migrate-stock-quantity-history-location-19

Conversation

@Sadiq-OSI

Copy link
Copy Markdown

Summary

Migrates stock_quantity_history_location to Odoo 19.0.

Changes

  • Ported the addon from 18.0 to 19.0.
  • Updated manifest metadata, README/addon index, metapackage dependency, and translation/docs metadata.
  • Adapted location filtering for Odoo 19 by using strict=True when child locations are not included.
  • Updated tests to cover parent location, child location, and exact-location behavior.

Validation

  • Installed the module on Odoo 19 successfully.
  • Updated the module on Odoo 19 successfully.
  • Focused tests passed: 0 failed, 0 error(s).
  • Manual UI testing passed:
    • Parent location + include child locations shows child stock.
    • Parent location only excludes child stock.
    • Child location directly shows the stock.
    • Historical date before the adjustment shows zero stock.

@OCA-git-bot OCA-git-bot added series:19.0 mod:stock_quantity_history_location Module stock_quantity_history_location labels Jun 24, 2026
@Sadiq-OSI
Sadiq-OSI force-pushed the work/migrate-stock-quantity-history-location-19 branch 2 times, most recently from 084107e to 23107e6 Compare June 24, 2026 16:37
@yostashiro

Copy link
Copy Markdown
Member

@Sadiq-OSI Thank you for your PR. Can you please preserve the history by following the steps described here: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-19.0#technical-method-to-migrate-a-module-from-180-to-190-branch

JordiBForgeFlow and others added 25 commits June 26, 2026 16:12
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-reporting-13.0/stock-logistics-reporting-13.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-13-0/stock-logistics-reporting-13-0-stock_quantity_history_location/ro/
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-reporting-13.0/stock-logistics-reporting-13.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-13-0/stock-logistics-reporting-13-0-stock_quantity_history_location/it/
…rors according to stock_account_quantity_history_location
Currently translated at 100.0% (6 of 6 strings)

Translation: stock-logistics-reporting-14.0/stock-logistics-reporting-14.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-stock_quantity_history_location/ja/
Co-authored-by: DavidJForgeFlow <david.jimenez@forgeflow.com>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-reporting-15.0/stock-logistics-reporting-15.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-15-0/stock-logistics-reporting-15-0-stock_quantity_history_location/
Currently translated at 60.0% (3 of 5 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_quantity_history_location/it/
OCA-git-bot and others added 22 commits June 26, 2026 16:12
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_quantity_history_location/
Currently translated at 100.0% (5 of 5 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_quantity_history_location/it/
Currently translated at 100.0% (5 of 5 strings)

Translation: stock-logistics-reporting-16.0/stock-logistics-reporting-16.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_quantity_history_location/es/
- refactored .js code by inheriting `get_views` method to display a different button text for those users having the Multi Locations group enabled. Added a test case to cover the change
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-reporting-17.0/stock-logistics-reporting-17.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-17-0/stock-logistics-reporting-17-0-stock_quantity_history_location/
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-reporting-17.0/stock-logistics-reporting-17.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-17-0/stock-logistics-reporting-17-0-stock_quantity_history_location/it/
Currently translated at 100.0% (5 of 5 strings)

Translation: stock-logistics-reporting-18.0/stock-logistics-reporting-18.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-18-0/stock-logistics-reporting-18-0-stock_quantity_history_location/sl/
Currently translated at 100.0% (5 of 5 strings)

Translation: stock-logistics-reporting-18.0/stock-logistics-reporting-18.0-stock_quantity_history_location
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-18-0/stock-logistics-reporting-18-0-stock_quantity_history_location/fr/
@Sadiq-OSI
Sadiq-OSI force-pushed the work/migrate-stock-quantity-history-location-19 branch from 23107e6 to 6d29c5a Compare June 26, 2026 20:15
@Sadiq-OSI

Copy link
Copy Markdown
Author

Hi @yostashiro, I updated the PR to preserve the commit history from the previous versions as requested. Could you please review it again when you have a chance?

@yostashiro yostashiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code review and functional test. LGTM!

Inventory / Configuration / Settings / Warehouse and activate it.

To use this module, go to:
- *Inventory / Reporting / Locations*

@smorita7749 smorita7749 Jul 1, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- *Inventory / Reporting / Locations*
- *Inventory / Reporting / Stock*

I think it is Stock.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Sadiq-OSI could you please take a look at this?

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Functional review LGTM!

@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). 🤖

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.