From 93fa4e2d2e0b4d2ba8e724c1010922717db21578 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Tue, 22 Oct 2024 18:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_performance/models/yuthon_index_employee.py | 8 ++++++++ yuthon_performance/views/yuthon_employee_approval.xml | 1 + yuthon_performance/views/yuthon_index_employee.xml | 1 + 3 files changed, 10 insertions(+) diff --git a/yuthon_performance/models/yuthon_index_employee.py b/yuthon_performance/models/yuthon_index_employee.py index 42747ab62..ef7f014c6 100644 --- a/yuthon_performance/models/yuthon_index_employee.py +++ b/yuthon_performance/models/yuthon_index_employee.py @@ -30,6 +30,14 @@ class YuthonIndexEmployee(models.Model): def put_assessment_tasks1_approval(self): pass + def open_record(self): + return { + "type": "ir.actions.act_window", + "res_model": 'yuthon.index.employee', + "res_id": self.id, + "name":"员工详情", + "view_mode": "form", + } class YuthonIndexEmployeeLine(models.Model): _name = 'yuthon.index.employee.line' _description = '员工绩效指标库明细' diff --git a/yuthon_performance/views/yuthon_employee_approval.xml b/yuthon_performance/views/yuthon_employee_approval.xml index 668c0a902..5a6c6322c 100644 --- a/yuthon_performance/views/yuthon_employee_approval.xml +++ b/yuthon_performance/views/yuthon_employee_approval.xml @@ -45,6 +45,7 @@ +