Merge branch 'imp/15.0/delivery_stamps__customs_weight' into '15.0-test'

imp/15.0/delivery_stamps__customs_weight into 15.0-test

See merge request hibou-io/hibou-odoo/suite!1479
This commit is contained in:
Hibou Bot
2022-09-28 18:51:59 +00:00

View File

@@ -406,7 +406,7 @@ class ProviderStamps(models.Model):
}
product_values[product]['quantity'] += quantity
product_values[product]['value'] += price * quantity
product_values[product]['value'] += self._stamps_convert_weight(product.weight * values['quantity']) # not rounded....
product_values[product]['weight'] += self._stamps_convert_weight(product.weight * quantity) # not rounded so we can sum better....
# Note that Stamps must match customs weight to the shipment itself
# IF we just take the weight from the products, then we're wrong by the difference between shipping weight