diff options
| author | amoyaux <arm@odoo.com> | 2017-07-18 17:30:42 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-07-19 19:37:32 +0200 |
| commit | 52c21bd53eced97d8471c2536e2c086611e7b43b (patch) | |
| tree | 1253df93828901e69367313e93c13433ceea8038 /addons/web/static/src/js/fields/relational_fields.js | |
| parent | cc181711dd84df0584ea6d49d174265dade5ec9b (diff) | |
[FIX] stock : _update_available_quantity and sublocations
When updating the quantity on hand in a location without quant but
where one of its sublocations has onee, it will increase the available
quantity in the sub location instead of the defined location.
This happens because _gather method in quant search on child_of location
in any case.
This commit change the domain by using '=' on the locations if `strict` is
passed as True in _gather, or 'child_of' if it is set as False. It also
removes the strict argument on _update_avaible_quantity since it does
not make sense to change the quantity on an undefined quant. And it was
never used in our code for good reasons.
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions
