[FIX] delivery_hibou: filtering products for insurance rating on order

This commit is contained in:
Jared Kipe
2021-04-05 11:01:02 -07:00
parent 7c511f4409
commit e3b5b8294f

View File

@@ -19,7 +19,7 @@ class DeliveryCarrier(models.Model):
value = 0.0
if order:
if order.order_line:
value = sum(order.order_line.filtered(lambda l: l.type != 'service').mapped('price_subtotal'))
value = sum(order.order_line.filtered(lambda l: l.product_id.type != 'service').mapped('price_subtotal'))
else:
return value
if picking: