Skip to content
Snippets Groups Projects
Commit 64caa930 authored by Rémy Voet (ryv)'s avatar Rémy Voet (ryv)
Browse files

[REF] stock: cache the `get_warehouse` of `stock.location`

To avoid multiple search of the get_warehouse for the same location
and extra SQL request (it happens a lot for complicate flow, e.g.
mrp_mps, replenishment report).
Translate it into a standard compute to use the cache of
the ORM for no-store compute field (`warehouse_id`) and put
some depends to be always correct (even if `warehouse_id` shouldn't
change in the same request).

task-2439019
parent 974c4398
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment