diff --git a/app_product_weight_sale/models/sale_order_line.py b/app_product_weight_sale/models/sale_order_line.py index b91f3e56..224fd83c 100644 --- a/app_product_weight_sale/models/sale_order_line.py +++ b/app_product_weight_sale/models/sale_order_line.py @@ -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