You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: