修复返工

This commit is contained in:
jinling.yang
2024-07-26 16:52:48 +08:00
parent 28041cbef9
commit 22a1ae11a6
2 changed files with 11 additions and 0 deletions

View File

@@ -902,6 +902,10 @@ class MrpProduction(models.Model):
if pre_workorder:
pre_workorder.write(
{'processing_drawing': base64.b64encode(open(panel_file_path, 'rb').read())})
# if production.state == 'rework' and production.programming_state == '已编程未下发':
# production.write(
# {'state': 'progress', 'programming_state': '已编程', 'is_rework': False})
# logging.info('返工含有已编程未下发的程序更新完成:%s' % production.name)
logging.info('更新程序完成:%s' % production.name)
else: