优化生产线驾驶舱,将功能刀具组装中心的按键改成组装单的跳转按键

This commit is contained in:
yuxianghui
2024-02-18 10:24:21 +08:00
parent f726bbaef6
commit 39a2b1035a
4 changed files with 44 additions and 0 deletions

View File

@@ -36,3 +36,12 @@ class CNCprocessing(models.Model):
# 调用CAM工单程序用刀计划创建方法
self.env['sf.cam.work.order.program.knife.plan'].create_cam_work_plan(obj)
return obj
class MrpWorkCenter(models.Model):
_inherit = 'mrp.workcenter'
def action_tool_order(self):
action = self.env.ref('sf_tool_management.sf_functional_tool_assembly_view_act')
result = action.read()[0]
return result