Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] product_variant_route_mto: Migration to 18.0 #1879

Open
wants to merge 6 commits into
base: 18.0
Choose a base branch
from

Conversation

chaule97
Copy link
Contributor

@chaule97 chaule97 commented Feb 6, 2025

mmequignon and others added 6 commits February 6, 2025 10:02
Define route_ids as computed on the product variant, in order to
reuse route_ids from its template and add or remove MTO route
according to the setting on the variant.

In case MTO route is changed on the template, it must reset any
variant specific setting.
@jbaudoux
Copy link
Contributor

jbaudoux commented Feb 6, 2025

cc @mmequignon @grindtildeath

"stock.route",
compute="_compute_route_ids",
domain="[('product_selectable', '=', True)]",
store=True,
Copy link
Contributor

@grindtildeath grindtildeath Feb 6, 2025

Choose a reason for hiding this comment

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

IMO we do not want to store this field and must define a search function instead.

The goal with this field is to use the route_ids from the template - plus/minus the MTO route depending on the setting of the variant - when reading/searching on the product variant. By storing this, the route_ids from the template will not be used anymore, with the possibility to have inconsistencies between product and template as the product variant routes will not reflect anymore the routes from the template.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please point the open PR in v14 fixing this so that it can be ported once finished

Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

Waiting fix on v14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants