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 @@