diff --git a/sf_manufacturing/models/tray.py b/sf_manufacturing/models/tray.py index a572f52c..4af97865 100644 --- a/sf_manufacturing/models/tray.py +++ b/sf_manufacturing/models/tray.py @@ -18,42 +18,7 @@ class Tray(models.Model): @api.onchange('production_id') def updateTrayState(self): - - if self.workorder_id != False: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + if self.workorder_id != False and self.create_date != False: self.state = '占用' else: