[FIX] hr_holidays_community
This commit is contained in:
parent
4aa5391a6b
commit
84cff45c65
|
|
@ -137,9 +137,7 @@
|
|||
<field name="name">hr.holidays.allocation.tree</field>
|
||||
<field name="model">hr.holidays</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree
|
||||
decoration-info="state == 'draft'" decoration-warning="state in ['confirm', 'validate']"
|
||||
decoration-success="state == 'validate1'" decoration-danger="state == 'refuse'" string="Allocation Requests"
|
||||
<tree decoration-danger="state == 'refuse'" decoration-info="state == 'draft'" string="Allocation Requests"
|
||||
decoration-bf="message_needaction == True">
|
||||
<field name="employee_id"/>
|
||||
<field name="department_id" />
|
||||
|
|
@ -183,9 +181,7 @@
|
|||
<field name="model">hr.holidays</field>
|
||||
<field name="priority">20</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree
|
||||
decoration-info="state == 'draft'" decoration-warning="state in ['confirm', 'validate']"
|
||||
decoration-success="state == 'validate1'" decoration-danger="state == 'refuse'" string="Leaves Summary">
|
||||
<tree decoration-danger="state == 'refuse'" decoration-info="state == 'draft'" string="Leaves Summary">
|
||||
<field name="employee_id"/>
|
||||
<field name="category_id" invisible="1"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
|
|
@ -280,9 +276,7 @@
|
|||
<field name="name">hr.holidays.tree</field>
|
||||
<field name="model">hr.holidays</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree
|
||||
decoration-info="state == 'draft'" decoration-warning="state in ['confirm', 'validate']"
|
||||
decoration-success="state == 'validate1'" decoration-danger="state == 'refuse'" string="Leave Requests"
|
||||
<tree decoration-danger="state == 'refuse'" decoration-info="state == 'draft'" string="Leave Requests"
|
||||
decoration-bf="message_needaction == True">
|
||||
<field name="employee_id"/>
|
||||
<field name="holiday_type" string="Mode" groups="base.group_no_one"/>
|
||||
|
|
@ -290,7 +284,7 @@
|
|||
<field name="name"/>
|
||||
<field name="date_from"/>
|
||||
<field name="date_to"/>
|
||||
<field name="number_of_days_temp" string="Number of Days" sum="Remaining Days" decoration-bf="1"/>
|
||||
<field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
|
||||
<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"/>
|
||||
|
|
@ -526,7 +520,7 @@
|
|||
Click here to create a new leave request.
|
||||
</p>
|
||||
</field>
|
||||
<field name="domain">[('holiday_type', '=', 'employee'), ('type', '=', 'add')]</field>
|
||||
<field name="domain">[('holiday_type','=','employee')]</field>
|
||||
<field name="search_view_id" ref="view_hr_holidays_filter"/>
|
||||
</record>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue