diff options
| author | Simon Lejeune <sle@openerp.com> | 2017-07-19 20:09:19 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-07-19 20:09:19 +0200 |
| commit | 0ae679e433ee4c5ca32ae1302d87d7fb33e0c78d (patch) | |
| tree | 33ea5595a6e9470fd7112cbb402b4db84f13fc38 /addons/web/static/src/js/views/graph/graph_model.js | |
| parent | 52c21bd53eced97d8471c2536e2c086611e7b43b (diff) | |
[FIX] stock: scrap and sublocations
Following the previous commit, it appears than the scrap mechanism needs
some rigorousness when looking for quants characteristics (i.e. if we
look for a quant without `lot_id`, it should not return one with one)
but some flexibility with the location (i.e. we can look in sublocations
to find one with the given characteristics).
Before this commit, we centralized everything related to quant's search
in stock_quant.py and the `_gather` method, which has a `strict` kw. As
we exposed the `_get_quantity` method but is only used in stock_scrap,
and that the `strict` flag does not fulfill the needs of stock_scrap, we
inline the appropriate search, as it was done previously.
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_model.js')
0 files changed, 0 insertions, 0 deletions
