summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2016-11-02 18:05:50 +0100
committerPierre Masereel <pim@odoo.com>2016-11-04 16:42:28 +0100
commit56278a2303bfb6028e44fb20fb4a2fcb937ec9fe (patch)
tree9ec289893a4df19c113196da33250e6cb5f444c1 /addons/web/static/src/js
parent1872b39f921efb883fdaa015c6cab7f03b3c1042 (diff)
[FIX] stock: _compute_package_info when children are packages
When we put a pack in a pack and try to validate the picking, we get an error saying we are trying to create a pack operation without a location id. This is caused by the 'quant.package' location computation, when we validate a picking, odoo will create the pack operations in the next picking if there are any. And when it tries to create a pack operation of a pack in pack, it cannot get the location id of the top level package quant because in the compution of the location_id, it only looks at quants having a package_id correspeding to the package. And there are not any when the it's a package of package. To solve this issue, we fixed the function '_compute_children_quant_ids' that doesn't work either because of the same reasons. And then we use it in function '_compute_package_info' to get the quants if there are any. This bug has been introduced in rev: https://github.com/odoo/odoo/commit/fe9b31c0e703cf4f3f4f4001ab199f7a4353f9b9
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions