diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 088e6bf7..dee1258a 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -899,7 +899,7 @@ class ResMrpWorkOrder(models.Model): for workorder in record.production_id.workorder_ids: if workorder.state != 'done': is_production_id = False - if is_production_id == True and record.name == '解除装夹': + if is_production_id is True and record.routing_type in ['解除装夹', '表面工艺']: for workorder in record.production_id.workorder_ids: workorder.rfid_code_old = workorder.rfid_code workorder.rfid_code = None diff --git a/sf_sale/views/sale_order_view.xml b/sf_sale/views/sale_order_view.xml index 67396d8f..afa718c6 100644 --- a/sf_sale/views/sale_order_view.xml +++ b/sf_sale/views/sale_order_view.xml @@ -70,7 +70,6 @@ -