This commit is contained in:
pengyuthon
2025-12-14 18:25:11 +08:00
parent 916ff91d97
commit c2ec0f475e
+2 -2
View File
@@ -985,10 +985,10 @@ class HrAttendance(models.Model):
except Exception as e:
_logger.error(f"下班打卡提醒发送失败:员工={employee_id.name}, 错误={e}")
def test_card(self):
def test_card(self, user_id):
content_item = [{"key": "班次", "value": "测试行政"}, {"key": "类型", "value": "下班"}]
self.sudo().env["wecom.apps"].sync_send_message_textcard(
category='att', user_id='78',
category='att', user_id=str(user_id),
description="记得打卡", title="打卡提醒",
content_item=content_item, )