添加功能

This commit is contained in:
李鹏宇
2026-03-03 18:58:12 +08:00
parent 562f15d38a
commit e049219662
@@ -623,8 +623,8 @@ class SoongWorkflowRecord(models.Model):
local_time = current_utc_time + timedelta(hours=8)
h = local_time.hour
m = local_time.minute
# if not (h == 17 and 25 <= m <= 35):
# return
if not (h == 17 and 25 <= m <= 35):
return
menu_id = self.env['ir.ui.menu'].search([('name', '=', '待办流程')])
target_url = f'https://oa.thtzjt.com/web#aciton=4299&model=soong.workflow.record&view_type=list&cids=1-2-3-4&menu_id={menu_id.id}'
rec_ids = self.env["soong.workflow.record"].search([