[FIX] delivery_hibou: order line type

This commit is contained in:
Jared Kipe
2021-10-25 15:49:13 -07:00
parent 5ac761a035
commit a83b959c07

View File

@@ -38,7 +38,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 False
if picking: