[UPD] hr_holidays_community

This commit is contained in:
Samir Ladoui 2025-07-23 15:53:05 +01:00
parent 0492a80270
commit f8bfc11d42
1 changed files with 18 additions and 12 deletions

View File

@ -137,22 +137,24 @@
<field name="name">hr.holidays.allocation.tree</field>
<field name="model">hr.holidays</field>
<field name="arch" type="xml">
<tree decoration-danger="state == 'refuse'" decoration-info="state == 'draft'" string="Allocation Requests"
<tree
decoration-info="state == 'draft'" decoration-warning="state in ['confirm', 'validate']"
decoration-success="state == 'validate1'" decoration-danger="state == 'refuse'" string="Allocation Requests"
decoration-bf="message_needaction == True">
<field name="employee_id"/>
<field name="department_id" />
<field name="holiday_type"/>
<field name="category_id"/>
<field name="department_id" invisible="1"/>
<field name="holiday_status_id"/>
<field name="name"/>
<field name="number_of_days" string="Allocated Days" sum="Remaining Days"/>
<field name="state"/>
<field name="holiday_type" invisible="1"/>
<field name="category_id" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="name" invisible="1"/>
<field name="manager_id" invisible="1"/>
<field name="user_id" invisible="1"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="date_from" invisible="1"/>
<field name="date_to" invisible="1"/>
<field name="message_needaction" invisible="1"/>
<field name="state"/>
</tree>
</field>
</record>
@ -181,7 +183,9 @@
<field name="model">hr.holidays</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<tree decoration-danger="state == 'refuse'" decoration-info="state == 'draft'" string="Leaves Summary">
<tree
decoration-info="state == 'draft'" decoration-warning="state in ['confirm', 'validate']"
decoration-success="state == 'validate1'" decoration-danger="state == 'refuse'" string="Leaves Summary">
<field name="employee_id"/>
<field name="category_id" invisible="1"/>
<field name="department_id" invisible="1"/>
@ -276,7 +280,9 @@
<field name="name">hr.holidays.tree</field>
<field name="model">hr.holidays</field>
<field name="arch" type="xml">
<tree decoration-danger="state == 'refuse'" decoration-info="state == 'draft'" string="Leave Requests"
<tree
decoration-info="state == 'draft'" decoration-warning="state in ['confirm', 'validate']"
decoration-success="state == 'validate1'" decoration-danger="state == 'refuse'" string="Leave Requests"
decoration-bf="message_needaction == True">
<field name="employee_id"/>
<field name="holiday_type" string="Mode" groups="base.group_no_one"/>
@ -284,7 +290,7 @@
<field name="name"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
<field name="number_of_days_temp" string="Number of Days" sum="Remaining Days" decoration-bf="1"/>
<field name="state"/>
<field name="payslip_status" widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="hr_holidays_community.group_hr_holidays_manager"/>
<field name="category_id" invisible="1"/>
@ -520,7 +526,7 @@
Click here to create a new leave request.
</p>
</field>
<field name="domain">[('holiday_type','=','employee')]</field>
<field name="domain">[('holiday_type', '=', 'employee'), ('type', '=', 'add')]</field>
<field name="search_view_id" ref="view_hr_holidays_filter"/>
</record>