解除装夹处,扫码同步打印成品条码

This commit is contained in:
mgw
2024-09-19 14:38:24 +08:00
parent 7354a19696
commit c4069995e0

View File

@@ -206,6 +206,9 @@ class WorkpieceDeliveryWizard(models.TransientModel):
workorder.production_line_id.id != self.production_ids[0].production_line_id.id):
raise UserError(f'该rfid对应的制造订单号为{workorder.production_id.name}的目的生产线不一致')
# 调用打印成品条码方法
workorder.print_method()
# 将对象添加到对应的同模型且是多对多类型里
self.production_ids |= workorder.production_id
self.workorder_ids |= workorder