mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix store
This commit is contained in:
@@ -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_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)
|
weight_subtotal = fields.Float(string='Weight Subtotal', compute='_compute_weight', store=True)
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
|||||||
Reference in New Issue
Block a user