From b3bfe48c672f66a74884c7d7bd3b2d81f2e540ae Mon Sep 17 00:00:00 2001 From: gqh Date: Fri, 3 Feb 2023 17:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/tray.py | 37 +-------------------------------- 1 file changed, 1 insertion(+), 36 deletions(-) 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: