Merge pull request !7043 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-12-14 09:44:19 +00:00
committed by Gitee
2 changed files with 11 additions and 15 deletions
@@ -19,7 +19,7 @@
// add by Lucky 20250713
// 使表单视图的内容居中
.o_action_manager .o_form_view_container .o_content .o_form_renderer .o_form_sheet_bg {
max-width: 75%;
max-width: 70%;
margin: 0 auto;
.o_wrap_field .o_form_label :not(.o_radio_item){
+10 -14
View File
@@ -968,13 +968,8 @@ class HrAttendance(models.Model):
url = '#小程序://天投云/XttsPpKg3MEpY7h'
try:
self.sudo().env["wecom.apps"].sync_send_message_textcard(
category='att',
user_id=employee_id.wecom_userid,
description=data,
title="打卡提醒",
url=url,
btntxt="详细信息"
)
category='att', user_id=employee_id.wecom_userid,
description=data, title="打卡提醒", url=url, btntxt="详细信息")
except Exception as e:
_logger.error(f"上班打卡提醒发送失败:员工={employee_id.name}, 错误={e}")
@@ -983,16 +978,17 @@ class HrAttendance(models.Model):
url = '#小程序://天投云/XttsPpKg3MEpY7h'
try:
self.sudo().env["wecom.apps"].sync_send_message_textcard(
category='att',
user_id=employee_id.wecom_userid,
description=data,
title="打卡提醒",
url=url,
btntxt="详细信息"
)
category='att', user_id=employee_id.wecom_userid,
description=data, title="打卡提醒", url=url, btntxt="详细信息")
except Exception as e:
_logger.error(f"下班打卡提醒发送失败:员工={employee_id.name}, 错误={e}")
def test(self):
data = "您的班次是还有5分钟上班,记得打卡"
url = '#小程序://天投云/XttsPpKg3MEpY7h'
self.sudo().env["wecom.apps"].sync_send_message(category='att', user_id='18562027762',
description=data, title="打卡提醒",
url=url, btntxt="详细信息")
def update_abnormal(self):
attendance_ids = self.env["hr.attendance"].browse(