[FIX] hr_timesheet: remove avatar widget on employee_id of timesheets

Before this commit, when we use the same widget than backend view, the
problem is the portal user cannot see the avatar picture of the
employees whom are not in the same company than him.

For this reason, this commit removes the avatar widget for this field.

task-2633229

closes #77156

X-original-commit: 3a21160d879d6244527b6b5640f796cfb84edfe2
This commit is contained in:
Xavier BOL (xbo)
2021-11-05 17:13:14 +01:00
parent 7beaa04201
commit 596a676984
@@ -37,18 +37,19 @@
</group>
<field name="timesheet_ids" mode="tree,kanban"
attrs="{'invisible': [('analytic_account_active', '=', False)]}">
<!-- TODO: see how to disable the _onRowclicked to not try to open form view -->
<tree string="Timesheet Activities" default_order="date" no_open="1">
<field name="date"/>
<!-- [XBO] TODO: remove me in master -->
<field name="user_id" invisible="1"/>
<field name="employee_id" widget="many2one_avatar_employee" options="{'no_open_chat': True}"/>
<field name="employee_id"/>
<field name="name"/>
<field name="unit_amount" widget="timesheet_uom" decoration-danger="unit_amount &gt; 24"/>
</tree>
<kanban class="o_kanban_mobile">
<field name="date"/>
<!-- [XBO] TODO: remove me in master -->
<field name="user_id" invisible="1"/>
<field name="employee_id" widget="many2one_avatar_employee" options="{'no_open_chat': True}"/>
<field name="employee_id"/>
<field name="name"/>
<field name="unit_amount" decoration-danger="unit_amount &gt; 24"/>
<field name="project_id"/>