From bc0dcea909be68e9d5bf511ffae4a228d7891f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Thu, 6 Nov 2025 11:01:21 +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_salary/models/inherit_hr_payslip.py | 19 +------------------ .../models/inherit_hr_payslip_run.py | 2 +- .../views/inherit_hr_payslip_views.xml | 3 --- yuthon_salary/wizard/payslip_send_wizard.py | 4 ++-- .../wizard/payslip_send_wizard_views.xml | 2 +- 5 files changed, 5 insertions(+), 25 deletions(-) diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 41e912194..474afc099 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -577,27 +577,10 @@ class InheritHrPayslip(models.Model): "target": "new", } - - def put_payslip(self): - url =f'http://oa.thtzjt.com/webh5#/notice?id={self.employee_id.user_id.id}' - we_id = self.env['hr.employee'].search([('id', '=', self.employee_id.id)]).wecom_userid - self.sudo().env["wecom.apps"].sync_send_message_textcard(category='payslip', user_id=we_id, title="薪资确认", - description=self.employee_id.name + '请确认你的薪资:', - url=url, btntxt="详细信息") - return { - 'type': 'ir.actions.client', - 'tag': 'display_notification', - 'params': { - 'type': 'success', - 'message': '确认通知已发送', - 'sticky': False, - } - } - def payslip_wizard(self): return { "type": "ir.actions.act_window", - "name": "工资条推送", + "name": "工资条发送", "res_model": "payslip.send.wizard", "view_mode": "form", "target": "new", diff --git a/yuthon_salary/models/inherit_hr_payslip_run.py b/yuthon_salary/models/inherit_hr_payslip_run.py index d7f3eba58..22e2f74f3 100644 --- a/yuthon_salary/models/inherit_hr_payslip_run.py +++ b/yuthon_salary/models/inherit_hr_payslip_run.py @@ -53,7 +53,7 @@ class InheritHrPayslipRun(models.Model): return { "type": "ir.actions.act_window", - "name": "工资条推送", + "name": "工资发送", "res_model": "payslip.send.wizard", "view_mode": "form", "target": "new", diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml index f2a5525a4..740961b6d 100644 --- a/yuthon_salary/views/inherit_hr_payslip_views.xml +++ b/yuthon_salary/views/inherit_hr_payslip_views.xml @@ -302,7 +302,6 @@