@@ -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')])
|
||||
|
||||
@@ -37,6 +37,11 @@
|
||||
<field name="related_issues_id" invisible="not is_issues"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="col-12 text-center">
|
||||
<h1>
|
||||
<field name="name_title" readonly="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group string="审批事项">
|
||||
<field name="name" required="1"/>
|
||||
<field name="main_text"/>
|
||||
|
||||
@@ -34,6 +34,11 @@
|
||||
</group>
|
||||
<group/>
|
||||
</group>
|
||||
<div class="col-12 text-center">
|
||||
<h1>
|
||||
<field name="name_title" readonly="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="reference_cold"/>
|
||||
|
||||
@@ -37,6 +37,11 @@
|
||||
</group>
|
||||
<group/>
|
||||
</group>
|
||||
<div class="col-12 text-center">
|
||||
<h1>
|
||||
<field name="name_title" readonly="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1>
|
||||
|
||||
@@ -43,6 +43,11 @@
|
||||
<field name="related_issues_id" invisible="is_meet == False"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="col-12 text-center">
|
||||
<h1>
|
||||
<field name="name_title" readonly="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<label for="name"/>
|
||||
<h1>
|
||||
@@ -51,6 +56,7 @@
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="user_id" invisible="1"/>
|
||||
<field name="official_partner_id"/>
|
||||
<field name="reference_cold"/>
|
||||
<field name="major_event_category"/>
|
||||
|
||||
Reference in New Issue
Block a user