diff --git a/yuthon_notice/models/yuthon_notice.py b/yuthon_notice/models/yuthon_notice.py index 832af6118..d72396d19 100644 --- a/yuthon_notice/models/yuthon_notice.py +++ b/yuthon_notice/models/yuthon_notice.py @@ -63,10 +63,9 @@ class YuthonNotice(models.Model): department_user_ids = set() for department_id in self.department_ids: department_user_ids.update(get_department_employees(department_id)) - for notice in self: - users = notice.employee_ids.mapped('user_id') + notice.users_role_ids.mapped('user_id') + department_user_ids - notice.users_ids = users + all_users = set(notice.employee_ids.mapped('user_id').ids + notice.users_role_ids.mapped('id') + list(department_user_ids)) + notice.users_ids = [(6, 0, list(all_users))] def get_no_read_count(self): return self.search_count([('is_notice_roger', '=', 'no'), ('notice_state', '=', 'yes')]) diff --git a/yuthon_official/views/yuthon_official_incoming_normal_views.xml b/yuthon_official/views/yuthon_official_incoming_normal_views.xml index b34347045..eb29fce96 100644 --- a/yuthon_official/views/yuthon_official_incoming_normal_views.xml +++ b/yuthon_official/views/yuthon_official_incoming_normal_views.xml @@ -37,6 +37,11 @@ +
+

+ +

+
diff --git a/yuthon_official/views/yuthon_official_labor_views.xml b/yuthon_official/views/yuthon_official_labor_views.xml index 0468f2114..6064ca8d0 100644 --- a/yuthon_official/views/yuthon_official_labor_views.xml +++ b/yuthon_official/views/yuthon_official_labor_views.xml @@ -34,6 +34,11 @@ +
+

+ +

+
diff --git a/yuthon_official/views/yuthon_official_party_views.xml b/yuthon_official/views/yuthon_official_party_views.xml index df1be0738..3656568ae 100644 --- a/yuthon_official/views/yuthon_official_party_views.xml +++ b/yuthon_official/views/yuthon_official_party_views.xml @@ -37,6 +37,11 @@ +
+

+ +

+