on publicleaves_balance_action
This commit is contained in:
parent
ee5b55a361
commit
3765ba5dd2
|
|
@ -10,46 +10,46 @@
|
|||
<field name="search_view_id" ref="hr_holidays_community.view_hr_holidays_filter"/>
|
||||
</record>
|
||||
|
||||
<record id="view_hr_holidays_tree_no_delete" model="ir.ui.view">
|
||||
<field name="name">hr.holidays.tree.no.delete</field>
|
||||
<field name="model">hr.holidays</field>
|
||||
<field name="inherit_id" ref="hr_holidays_public.leaves_balance_tree_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree position="attributes">
|
||||
<!-- <attribute name="delete">false</attribute>-->
|
||||
<attribute name="edit">True</attribute>
|
||||
<attribute name="create">True</attribute>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="view_hr_holidays_tree_no_delete" model="ir.ui.view">-->
|
||||
<!-- <field name="name">hr.holidays.tree.no.delete</field>-->
|
||||
<!-- <field name="model">hr.holidays</field>-->
|
||||
<!-- <field name="inherit_id" ref="hr_holidays_public.leaves_balance_tree_view"/>-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <tree position="attributes">-->
|
||||
<!--<!– <attribute name="delete">false</attribute>–>-->
|
||||
<!-- <attribute name="edit">True</attribute>-->
|
||||
<!-- <attribute name="create">True</attribute>-->
|
||||
<!-- </tree>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<record id="view_hr_holidays_form_no_delete" model="ir.ui.view">
|
||||
<field name="name">hr.holidays.form.no.delete</field>
|
||||
<field name="model">hr.holidays</field>
|
||||
<field name="inherit_id" ref="hr_holidays_community.edit_holiday_new"/>
|
||||
<field name="arch" type="xml">
|
||||
<form position="attributes">
|
||||
<!-- <attribute name="delete">false</attribute>-->
|
||||
<!-- <attribute name="edit">false</attribute>-->
|
||||
<!-- <attribute name="create">false</attribute>-->
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="view_hr_holidays_form_no_delete" model="ir.ui.view">-->
|
||||
<!-- <field name="name">hr.holidays.form.no.delete</field>-->
|
||||
<!-- <field name="model">hr.holidays</field>-->
|
||||
<!-- <field name="inherit_id" ref="hr_holidays_community.edit_holiday_new"/>-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <form position="attributes">-->
|
||||
<!--<!– <attribute name="delete">false</attribute>–>-->
|
||||
<!--<!– <attribute name="edit">false</attribute>–>-->
|
||||
<!--<!– <attribute name="create">false</attribute>–>-->
|
||||
<!-- </form>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<record model="ir.actions.act_window" id="leaves_balancee_action">
|
||||
<field name="name">Leaves Balance</field>
|
||||
<field name="res_model">hr.holidays</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_ids" eval="[
|
||||
(5, 0, 0),
|
||||
(0, 0, {'view_mode': 'tree', 'view_id': ref('view_hr_holidays_tree_no_delete')}),
|
||||
(0, 0, {'view_mode': 'form', 'view_id': ref('hr_holidays_public.leaves_balance_form_view')})
|
||||
]"/>
|
||||
<field name="domain">[('type','=','add'),('check_allocation_view','=','balance')]</field>
|
||||
<field name="context">{'search_default_employee_id': [active_id], 'default_employee_id': active_id, 'search_default_group_type': 1,
|
||||
'search_default_year': 1}</field>
|
||||
<field name="search_view_id" ref="hr_holidays_community.view_hr_holidays_filter"/>
|
||||
</record>
|
||||
<!-- <record model="ir.actions.act_window" id="leaves_balancee_action">-->
|
||||
<!-- <field name="name">Leaves Balance</field>-->
|
||||
<!-- <field name="res_model">hr.holidays</field>-->
|
||||
<!-- <field name="view_mode">tree,form</field>-->
|
||||
<!-- <field name="view_ids" eval="[-->
|
||||
<!-- (5, 0, 0),-->
|
||||
<!-- (0, 0, {'view_mode': 'tree', 'view_id': ref('view_hr_holidays_tree_no_delete')}),-->
|
||||
<!-- (0, 0, {'view_mode': 'form', 'view_id': ref('hr_holidays_public.leaves_balance_form_view')})-->
|
||||
<!-- ]"/>-->
|
||||
<!-- <field name="domain">[('type','=','add'),('check_allocation_view','=','balance')]</field>-->
|
||||
<!-- <field name="context">{'search_default_employee_id': [active_id], 'default_employee_id': active_id, 'search_default_group_type': 1,-->
|
||||
<!-- 'search_default_year': 1}</field>-->
|
||||
<!-- <field name="search_view_id" ref="hr_holidays_community.view_hr_holidays_filter"/>-->
|
||||
<!-- </record>-->
|
||||
|
||||
|
||||
|
||||
|
|
@ -60,7 +60,8 @@
|
|||
<field name="inherit_id" ref="hr_holidays_community.view_employee_form_leave_inherit"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='%(hr_holidays_community.act_hr_employee_holiday_request)d']" position="attributes">
|
||||
<attribute name="name">%(hr_holidays_public.leaves_balancee_action)d</attribute>
|
||||
<!-- <attribute name="name">%(hr_holidays_public.leaves_balancee_action)d</attribute>-->
|
||||
<attribute name="name">%(hr_holidays_public.leaves_balance_action)d</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
Loading…
Reference in New Issue