Skip to Content
Menu
This question has been flagged

Hai all,

  Am working on employee leave management, for the same purpose i have create a model called x_bsnstrip, also I downloaded a third party module for multiple level of approval, now I want to use that model in my form x_bsnstrip,

Can anyone tell me how to use the view 

hr.employee.form.inherit  

" <?xml version="1.0"?>
<notebook>
<page string="Holidays approvers chain" groups="hr.group_hr_user">
<button string="Set default chain" name="set_default_validation_chain" type="object" class="oe_highlight" help="Generate approvers chain based on management hierarchy"/>
<field name="holidays_approvers" context="{'dafault_employee': id}">
<tree editable="bottom">
<field name="sequence" widget="handle"/>
<field name="approver"/>
</tree>
</field>
<group>
<field name="transfer_holidays_approvals_to"/>
</group>
</page>
</notebook>  "  

in my custom form

​x_business.trip.form​
"<?xml version="1.0"?>
<form string="Business Trip">
<sheet>
<group>
<group string="Employee Information">
<field name="x_empname"/>
<field name="x_empid"/>
</group>
<group string=" Employee Position ">
<field name="x_posi"/>
<field name="x_dept"/>
</group>

<group string="Request Details">
<field name="x_startdate"/>
<field name="x_enddate"/>
</group>
<group string="Location Details">
<field name="x_dest" widget="radio"/>
<field name="x_location" />
<field name="x_ticket" widget="radio"/>
</group>
<group string="Identity Details" >
<field name="x_passport" attrs="{'invisible':[('x_ticket', '!=', 'yes')]}"/>
<field name="x_iqama" attrs="{'invisible':[('x_ticket', '!=', 'yes')]}"/>
<field name="x_visa" widget="radio" attrs="{'invisible':[('x_dest', '!=', 'outside saudi')]}"/>
<field name="x_note"/>
</group>
</group>

</sheet>
</form> "

 kindly tell me a solution which i can implement from the front view, because i am not much familiar with the python code ​

 Reply Comment Share
Avatar
Discard
Related Posts Replies Views Activity
1
Feb 23
1583
0
Dec 19
2014
0
Jul 19
2194
1
Jan 24
698
1
May 20
3481