mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_stamps: missing variable init
This commit is contained in:
@@ -418,6 +418,7 @@ class ProviderStamps(models.Model):
|
|||||||
if not all((shipment_weight, customs_total_weight)):
|
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))
|
raise UserError(_('Must have a shipment and customs weight to proceed. (shipment_weight %s, customs_weight %s') % (shipment_weight, customs_total_weight))
|
||||||
customs_lines = []
|
customs_lines = []
|
||||||
|
new_total_weight = 0.0
|
||||||
for product, values in product_values.items():
|
for product, values in product_values.items():
|
||||||
line_weight_ratio = shipment_weight / customs_total_weight
|
line_weight_ratio = shipment_weight / customs_total_weight
|
||||||
customs_line = service.create_customs_lines()
|
customs_line = service.create_customs_lines()
|
||||||
|
|||||||
Reference in New Issue
Block a user