解除装夹处打印成品二维码

This commit is contained in:
mgw
2024-07-09 10:18:13 +08:00
parent 27eb959a2a
commit ed4903b6f1
3 changed files with 13 additions and 0 deletions

View File

@@ -1093,6 +1093,16 @@ class ResMrpWorkOrder(models.Model):
# logging.info('button_send_program_again error:%s' % e)
# raise UserError("重新下发nc程序失败,请联系管理员")
def print_method(self):
"""
解除装夹处调用关联制造订单的关联序列号的打印方法
"""
if self.production_id:
if self.production_id.lot_producing_id:
self.production_id.lot_producing_id.print_single_method()
else:
raise UserError("无关联制造订单或关联序列号,无法打印。请检查!")
class CNCprocessing(models.Model):
_name = 'sf.cnc.processing'