mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch 'fix/12.0/delivery_hibou__insurance_for_order' into '12.0'
fix/12.0/delivery_hibou__insurance_for_order into 12.0 See merge request hibou-io/hibou-odoo/suite!877
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user