[FIX] delivery: store estimated delivery price

This commit is contained in:
Richard Mathot
2015-08-06 10:35:17 +02:00
parent 22a3c08af7
commit dca43ecd4d
+1 -1
View File
@@ -26,7 +26,7 @@ from openerp.exceptions import UserError
class SaleOrder(models.Model):
_inherit = 'sale.order'
delivery_price = fields.Float(string='Estimated Delivery Price', compute='_compute_delivery_price')
delivery_price = fields.Float(string='Estimated Delivery Price', compute='_compute_delivery_price', store=True)
@api.depends('carrier_id', 'partner_id', 'order_line')
def _compute_delivery_price(self):