fix store

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

View File

@@ -15,7 +15,7 @@ class SaleOrder(models.Model):
else:
return self.env.ref('uom.product_uom_kgm').name
weight_total = fields.Float(string='Total Weight', compute='_compute_weight_total')
weight_total = fields.Float(string='Total Weight', compute='_compute_weight_total', store=True)
# 重量显示的单位
weight_uom_name = fields.Char(string='Weight Measure', default=_get_default_weight_uom_name, readonly=True)