[IMP] hr: make tags visible/editable by Officer
The tags management on an employee was limited to HR Administrator, which didn't make sense as an HR Officer could manage the tags just not assign them to an employee. closes odoo/odoo#81654 Taskid: 2715498 Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
@@ -105,7 +105,7 @@ class HrEmployeePrivate(models.Model):
|
||||
child_ids = fields.One2many('hr.employee', 'parent_id', string='Direct subordinates')
|
||||
category_ids = fields.Many2many(
|
||||
'hr.employee.category', 'employee_category_rel',
|
||||
'emp_id', 'category_id', groups="hr.group_hr_manager",
|
||||
'emp_id', 'category_id', groups="hr.group_hr_user",
|
||||
string='Tags')
|
||||
# misc
|
||||
notes = fields.Text('Notes', groups="hr.group_hr_user")
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<h2>
|
||||
<field name="job_title" placeholder="Job Position" />
|
||||
</h2>
|
||||
<field name="category_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" placeholder="Tags" groups="hr.group_hr_manager"/>
|
||||
<field name="category_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" placeholder="Tags" groups="hr.group_hr_user"/>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
@@ -300,7 +300,7 @@
|
||||
<span t-if="record.job_title.raw_value" class="o_kanban_record_subtitle"><field name="job_title"/></span>
|
||||
</div>
|
||||
</div>
|
||||
<field name="category_ids" widget="many2many_tags" options="{'color_field': 'color'}" groups="hr.group_hr_manager"/>
|
||||
<field name="category_ids" widget="many2many_tags" options="{'color_field': 'color'}" groups="hr.group_hr_user"/>
|
||||
<ul>
|
||||
<li id="last_login"/>
|
||||
<li t-if="record.work_email.raw_value" class="o_text_overflow"><field name="work_email" /></li>
|
||||
|
||||
Reference in New Issue
Block a user