fix store

This commit is contained in:
ivan deng
2019-01-02 23:19:00 +08:00
parent 896918faa6
commit 5c3e5014e0

View File

@@ -11,7 +11,7 @@ class SaleOrderLine(models.Model):
# 显示的单位,影响性能暂时不使用
# weight_uom_name = fields.Char(string='Weight Measure', related='product_id.weight_uom_id.name', readonly=True)
weight = fields.Float(string='Weight', compute='_compute_weight', readonly=True)
weight = fields.Float(string='Weight', compute='_compute_weight', store=True)
weight_subtotal = fields.Float(string='Weight Subtotal', compute='_compute_weight', store=True)
@api.multi