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