summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-06-06 07:22:04 +0000
committerNans Lefebvre <len@odoo.com>2019-06-12 08:53:03 +0000
commitc41170ddc520c2eb44a882d113c4679392d5ad1c (patch)
treedaeff8f878a58a4c8473f2ec57d2254802a2cbf2 /addons/web/static/src/js/fields/basic_fields.js
parent41dfef8e2a4d1308c74de0fce2c1b19ed7803c52 (diff)
[FIX] delivery: get correct package default weight for packages
Make a SO for some products with weight and a delivery set. Put some products in a pack. It returns a wizard to choose the package type. This wizard also allows to input the shipping weight. It always defaulted to 0, instead of the sum of the weight of the products. Due to ff7df19bd3b, default_stock_quant_package_id is in context so _default_shipping_weight would try to use stock_quant_package.shipping_weight, which is always set to 0 at that point. Note that furthermore, the active_id might not be a picking (e.g. a SO). Therefore we always make the computation, with the default_picking_id in context opw 2006566 closes odoo/odoo#33930 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions