打卡
This commit is contained in:
@@ -213,9 +213,9 @@ class WeComApps(models.Model):
|
||||
}
|
||||
service_address = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
|
||||
_logger.info(f"系统当前地址{service_address}-------------------------------")
|
||||
_logger.info(f"系统当前地址{service_address}-------------------------------")
|
||||
_logger.info(f"系统当前地址{service_address}-------------------------------")
|
||||
if 'oa' not in service_address:
|
||||
if 'oa' in str(service_address):
|
||||
_logger.info(f"----------地址识别成功,已经发送消息通知---------------------")
|
||||
_logger.info(f"----------地址识别成功,已经发送消息通知---------------------")
|
||||
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