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!1478
This commit is contained in:
Hibou Bot
2022-09-27 20:58:52 +00:00

View File

@@ -418,6 +418,7 @@ class ProviderStamps(models.Model):
if not all((shipment_weight, customs_total_weight)):
raise UserError(_('Must have a shipment and customs weight to proceed. (shipment_weight %s, customs_weight %s') % (shipment_weight, customs_total_weight))
customs_lines = []
new_total_weight = 0.0
for product, values in product_values.items():
line_weight_ratio = shipment_weight / customs_total_weight
customs_line = service.create_customs_lines()