From a02c8da78a41d4318dde06702788db775587640c Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Wed, 25 Feb 2026 13:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E7=A8=8B=E6=8E=A5=E5=8F=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_will_task/controllers/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_will_task/controllers/main.py b/yuthon_will_task/controllers/main.py index 3f0e637f3..9fe5fce19 100644 --- a/yuthon_will_task/controllers/main.py +++ b/yuthon_will_task/controllers/main.py @@ -92,7 +92,8 @@ class YuthonWillTask(http.Controller): logger.info(f"{kwargs}") logger.info(f"{kwargs}") if _filter == 'leader': - domain = expression.AND([domain, get_is_leader_domain(True)]) + domain = [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理', '部门副经理', '副总经理', '司机'])] + # expression.AND([domain, get_is_leader_domain(True)]) else: domain = expression.AND([domain, get_is_leader_domain(False)]) today = fields.Date.today()