summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-04-05 13:04:46 +0000
committerNicolas Lempereur <nle@odoo.com>2019-04-05 13:38:16 +0000
commit7a5f1068fa60a93c59273040db17811617a039d7 (patch)
treedefacc56cc4f9fc6943d693b1dcb5800c254c46c /addons/web/static/src/js/fields/basic_fields.js
parent6fa292cec861da0ccfd3afe443062080171d2fc4 (diff)
[FIX] stock: return's return ok package location
If we create a package X transfering from location A to location B: - we create a stock.quant for package X in location B => The package is on location "B" (OK) If then we do a transfer of that package from location B to location A: - we set the location B / package X quant to 0 size - we create a stock.quant for package X in location A => The package is on location "A" (OK) If then we do a transfer of that package from location A to location B: - we set the location A / package X quant to 0 size - we set the location B / package X quant to package size => The package still is on location "A" (wrong) This is because: - since c0d7a05730 stock.quant.package field `quant_ids` is a view over related stock.quant but filtered on domain: ['|', ('quantity', '!=', 0), ('reserved_quantity', '!=', 0)] - stock.quant.package fields `location_id`, `company_id`, `owner_id` are updated when a related stock.quant has fields `package_id`, `location_id`, `company_id`, `owner_id` modified Thus when the `quant_ids` change by changing quantities, `location_id` are not updated even if it should be. opw-1963509 closes #32466 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions