Skip to content

[19.0][MIG] stock_available_location_get_domain: Migration to 19.0 - #94

Open
ivantodorovich wants to merge 5 commits into
OCA:19.0from
camptocamp:19.0-mig-stock_available_location_get_domain
Open

ivantodorovich wants to merge 5 commits into
OCA:19.0from
camptocamp:19.0-mig-stock_available_location_get_domain

Conversation

@ivantodorovich

@ivantodorovich ivantodorovich commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Migration to 19.0.

  • Rewrite the extraction of the location conditions from the quant domain with the 19.0 Domain API: the odoo.osv.expression internals it used are removed in 19.0. The behaviour is unchanged: the conditions on other fields of the quant are removed, along with the operators left without operands. _get_domain_location_for_locations now returns a Domain.
  • Support the any and not any operators on location_id.
  • Add tests for nested alternatives, negations, and a context without locations.

@OCA-git-bot OCA-git-bot added series:19.0 mod:stock_available_location_get_domain Module stock_available_location_get_domain labels Oct 27, 2026
@ivantodorovich
ivantodorovich force-pushed the 19.0-mig-stock_available_location_get_domain branch 3 times, most recently from 4e59d87 to e73db33 Compare October 27, 2026 19:20
@ivantodorovich
ivantodorovich marked this pull request as ready for review October 27, 2026 19:34
@ivantodorovich

Copy link
Copy Markdown
Contributor Author

ping @rousseldenis @lmignon @bizzappdev , as you worked on this module :)

@lmignon lmignon 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.

Can you keep the original signature extract_subdomains(domain, submodel_field). I use-it with others params...

@ivantodorovich
ivantodorovich force-pushed the 19.0-mig-stock_available_location_get_domain branch from e73db33 to 96fdf26 Compare November 2, 2026 12:06
@ivantodorovich

Copy link
Copy Markdown
Contributor Author

Thanks for the review, @lmignon !

I restored the submodule_field parameter and renamed the util method

@lmignon lmignon 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.

Thank you for all this hard work, @ivantodorovich, and for taking my comments into account 😏 LGTM!

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

Labels

mod:stock_available_location_get_domain Module stock_available_location_get_domain series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants