mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_hibou: cannot iterate on float
This commit is contained in:
@@ -84,7 +84,7 @@ class DeliveryCarrier(models.Model):
|
||||
order_total += ol.product_id[product_field] * ol.product_uom_qty
|
||||
package_type_field_value = package_type[package_type_field]
|
||||
if not package_type_field_value or package_type_field_value >= order_total:
|
||||
return 1.0
|
||||
return 1
|
||||
return ceil(order_total / package_type_field_value)
|
||||
|
||||
# Utility
|
||||
|
||||
Reference in New Issue
Block a user