diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-02-01 11:52:44 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-02-01 13:07:06 +0100 |
| commit | e0222de3c2210c9bd6d67ad1e4f90f44a86938ba (patch) | |
| tree | c1da2a6e9af8fe4e808bb9caaca1718adbaaf88c /addons/web/static/src/js/framework | |
| parent | c5bda97494f9255dc524019b7f101e45572b1952 (diff) | |
[FIX] stock: update qty on hand
When the quantity on hand is updated from the wizard, it may result in
completely inconsistent results.
This happens for example in the following case:
- 10 Units in Stock/WH
- 18 Units in Stock/WH/Shelf 1
The "New Quantity on Hand" suggests a theoretical quantity by taking
into account the location and its sub-locations. It the example, that
would mean 28 Units in location 'Stock/WH'.
However, the `_get_quants` method of the `stock.inventory.line` model
doesn't take into account the children locations. Therefore, the
theoretical quantity would be 10 Units in location 'Stock/WH'.
This inconsistency confuses the user, and the new quantity added might
introduce unexpected results.
opw-703886
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions
