考勤提醒限制
This commit is contained in:
@@ -200,7 +200,7 @@ class WeComApps(models.Model):
|
||||
}
|
||||
service_address = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
|
||||
_logger.info(f"企业微信接口请求地址{service_address}-------------------------------")
|
||||
if '8057' not in service_address:
|
||||
if 'thtzjt' in service_address:
|
||||
result_data = self.sync_function_api("message_send", "MESSAGE_SEND", data, category)
|
||||
employee_id = self.sudo().env["res.users"].search([("login", "=", user_id)], limit=1).employee_ids
|
||||
notice_type = 'attendance' if '记得打卡' in description else 'process'
|
||||
|
||||
Reference in New Issue
Block a user