From cd78d490f3b2dce95b11fdd4ba3e9ed9de85a768 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sat, 22 Feb 2025 17:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_will_task/__manifest__.py | 2 +- .../security/yuthon_will_task_security.xml | 25 ++++++------------- yuthon_will_task/views/yuthon_task_menu.xml | 20 +++------------ .../views/yuthon_will_task_views.xml | 17 +------------ 4 files changed, 13 insertions(+), 51 deletions(-) diff --git a/yuthon_will_task/__manifest__.py b/yuthon_will_task/__manifest__.py index 645957276..8504a001e 100644 --- a/yuthon_will_task/__manifest__.py +++ b/yuthon_will_task/__manifest__.py @@ -18,7 +18,7 @@ 'views/yuthon_task_menu.xml', ], 'demo': [], - 'depends': ['hr', 'mail', 'soong_workflow'], + 'depends': ['hr', 'mail', 'soong_workflow','yuthon_hr_employee'], 'installable': True, 'application': True, } diff --git a/yuthon_will_task/security/yuthon_will_task_security.xml b/yuthon_will_task/security/yuthon_will_task_security.xml index c9662c942..0acfb864d 100644 --- a/yuthon_will_task/security/yuthon_will_task_security.xml +++ b/yuthon_will_task/security/yuthon_will_task_security.xml @@ -5,30 +5,19 @@ 日程组 - 用户 + 日程用户 - 天河投资领导 + 日程组管理员 - - 天河物管领导 - - - - - 天河粮储领导 - - - - - 管理者 - - - + + yuthon_will_company_rule_admin + + [('yuthon_company', '=', user.employee_id.yuthon_company)] + \ No newline at end of file diff --git a/yuthon_will_task/views/yuthon_task_menu.xml b/yuthon_will_task/views/yuthon_task_menu.xml index 66e17a792..b2735cd68 100644 --- a/yuthon_will_task/views/yuthon_task_menu.xml +++ b/yuthon_will_task/views/yuthon_task_menu.xml @@ -12,39 +12,27 @@ groups="group_yuthon_will_task_user" sequence='1'/> - - {'search_default_next_seven_days': 1} - 天河投资领导日程 + 领导日程 yuthon.will.task tree,calendar - [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理']), ('yuthon_company', '=', 'thtz')] - {'search_default_next_seven_days': 1} - - - 天河物管领导日程 - yuthon.will.task - tree,calendar - [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理']), ('yuthon_company', '=', 'thwg')] - {'search_default_next_seven_days': 1} - - - 天河粮储领导日程 - yuthon.will.task - tree,calendar - [('user_role_ids.name', 'in', ['董事长', '分管领导', '总经理']), ('yuthon_company', '=', 'thlc')] {'search_default_next_seven_days': 1}