From bee86879724834f7e0d38c1a2315565c546e2f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Mon, 29 Jun 2026 17:15:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/models/yuthon_salary_active.py | 4 ++-- yuthon_salary/views/yuthon_salary_active_views.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yuthon_salary/models/yuthon_salary_active.py b/yuthon_salary/models/yuthon_salary_active.py index 5d84b88c7..003ca8e8a 100644 --- a/yuthon_salary/models/yuthon_salary_active.py +++ b/yuthon_salary/models/yuthon_salary_active.py @@ -122,7 +122,7 @@ class YuthonSalaryActive(models.Model): def salary_confirm(self): self.write({'confirm_status': 'confirm'}) - def payslip_transmit(self): + def action_payslip_send(self): url=f"https://phone.thtzjt.com/phone/Salary/{self.id}/{self.employee_id.user_id.id}" self.sudo().env["wecom.apps"].sync_send_message_textcard( category='salary', user_id=self.employee_id.wecom_userid, @@ -135,7 +135,7 @@ class YuthonSalaryActive(models.Model): # ) self.write({'confirm_status': 'un_confirm'}) - def all_payslip_transmit(self): + def all_payslip_send(self): salary_ids = self.env["yuthon.salary.active"].browse(self._context.get('active_ids', self._context.get('active_id'))) for rec in salary_ids: url = f"https://phone.thtzjt.com/phone/Salary/{rec.id}/{rec.employee_id.user_id.id}" diff --git a/yuthon_salary/views/yuthon_salary_active_views.xml b/yuthon_salary/views/yuthon_salary_active_views.xml index e18f24197..f2dbf7dbd 100644 --- a/yuthon_salary/views/yuthon_salary_active_views.xml +++ b/yuthon_salary/views/yuthon_salary_active_views.xml @@ -6,10 +6,10 @@
-
-