Files
odoo_source/addons/delivery/wizard
Nans Lefebvre c41170ddc5 [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 ff7df19bd3, 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>
2019-06-12 08:53:03 +00:00
..