diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 1b2520cc..2cb292e1 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -622,6 +622,8 @@ class ResMrpWorkOrder(models.Model): if workorder.state != 'done': is_production_id = False if is_production_id == True and self.name == '解除装夹': + for workorder in self.production_id.workorder_ids: + workorder.rfid_code = None for move_raw_id in self.production_id.move_raw_ids: move_raw_id.quantity_done = move_raw_id.product_uom_qty self.production_id.button_mark_done1()