diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index 7da6cbbb..322dff15 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -128,7 +128,7 @@ class MrpProduction(models.Model): for item in self: item.manual_quotation = item.product_id.manual_quotation - manual_quotation = fields.Boolean('人工编程', default=False, compute=_compute_manual_quotation) + manual_quotation = fields.Boolean('人工编程', default=False, compute=_compute_manual_quotation, store=True) is_scrap = fields.Boolean('是否报废', default=False) is_remanufacture = fields.Boolean('是否重新制造', default=False) diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 2cfaaccd..6adec1de 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -65,7 +65,7 @@ class ResMrpWorkOrder(models.Model): for item in self: item.manual_quotation = item.production_id.manual_quotation - manual_quotation = fields.Boolean('人工编程', default=False, compute=_compute_manual_quotation) + manual_quotation = fields.Boolean('人工编程', default=False, compute=_compute_manual_quotation, store=True) def _compute_working_users(self): super()._compute_working_users()