解除装夹处打印成品二维码
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user