Přejít na obsah
Menu
You need to be registered to interact with the community.
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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 23
2564
0
pro 19
2834
0
čvc 19
3115
1
led 24
2296
1
kvě 20
4551