优化了申请换刀功能的数据,

This commit is contained in:
yuxianghui
2023-06-29 14:16:10 +08:00
parent ec95e09553
commit d5938bf407
4 changed files with 22 additions and 13 deletions

View File

@@ -43,6 +43,7 @@ class ToolChangeRequirementInformation(models.TransientModel):
'remark': self.new_former,
'status': '1'
}
print('desc:', desc)
# 将数据更新到机台换刀申请界面
self.env['sf.machine.table.tool.changing.apply'].search(
[('CNC_machine_table', '=', desc.get('CNC_machine_table'))]).write(desc)
@@ -92,7 +93,7 @@ class ToolTransferRequestInformation(models.TransientModel):
def tool_transfer_apply(self):
"""
刀具转移申请信息确定按钮
todo 刀具转移申请信息确定按钮
:return:
"""
self.env['sf.machine.table.tool.changing.apply'].search(
@@ -245,5 +246,7 @@ class DeliveryOfCargoFromStorage(models.TransientModel):
('functional_tool_code', '=', val.functional_tool_code),
('functional_tool_name', '=', val.functional_tool_name)
]).write({
'assemble_status': '2'
'assemble_status': '2',
'receive_person': self.env.user.name,
'receive_time': fields.Datetime.now()
})