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

[RFC][14.0][stock_location_warehouse] #1250

Closed
JordiBForgeFlow opened this issue Sep 16, 2021 · 1 comment
Closed

[RFC][14.0][stock_location_warehouse] #1250

JordiBForgeFlow opened this issue Sep 16, 2021 · 1 comment

Comments

@JordiBForgeFlow
Copy link
Sponsor Member

It is often necessary to know what is the warehouse associated with a location. Currently this connection does not exist and has to be calculated.

This new module would add the field 'warehouse_id' to the stock.location model as a computed, stored field. The computed field would be recomputed with an @api.depends('parent_id'), so that every time that the parent location changes, the warehouse is recomputed. But not only would the warehouse of the location that is changing be recomputed. Also upon recomputation all the child locations below the location that is changing would need to see their warehouse_id field recomputed.

@ForgeFlow

@rousseldenis
Copy link
Sponsor Contributor

Has been done there : #1258

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

No branches or pull requests

2 participants