[FIX] hr_holidays: hide employee information in My Time menu

Before this commit, In time off if we got to dashboard and open list view then
information related to employee is missing.

In this commit,
  we have added invisible employee, department, time-off type
in my time menu of the list view

task-3482508

closes odoo/odoo#134453

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
pash-odoo
2023-10-13 11:46:11 +00:00
committed by Yannick Tivisse
parent 6334b04fb2
commit 13de773edd
2 changed files with 5 additions and 5 deletions
@@ -300,10 +300,10 @@
<field name="priority">32</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='employee_id']" position="attributes">
<attribute name="invisible">1</attribute>
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='department_id']" position="attributes">
<attribute name="invisible">1</attribute>
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//button[@name='action_validate']" position="attributes">
<attribute name="invisible">1</attribute>
+3 -3
View File
@@ -509,16 +509,16 @@
<field name="priority">32</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='all_employee_ids']" position="attributes">
<attribute name="invisible">1</attribute>
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='employee_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='department_id']" position="attributes">
<attribute name="invisible">1</attribute>
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='holiday_type']" position="attributes">
<attribute name="invisible">1</attribute>
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//button[@name='action_approve']" position="attributes">
<attribute name="invisible">1</attribute>