clinic/netforce_clinic/layouts/clinic_personal_form.xml

67 lines
2.5 KiB
XML

<form model="clinic.personal">
<head>
<field name="state"/>
<button string="Options" dropdown="1">
<item string="Copy"/>
</button>
</head>
<tabs>
<tab string="General">
<group span="6" columns="1">
<field name="type" required="1"/>
<field name="number"/>
<field name="name"/>
<field name="name_eng"/>
<field name="nick_name"/>
<field name="identification"/>
<field name="expiry_card"/>
<field name="birthday"/>
<field name="gender"/>
<field name="department_id"/>
<field name="categ_id" domain="[['type','=',type]]"/>
<field name="nation_id"/>
<field name="state"/>
</group>
<group span="6" columns="1">
<field name="picture"/>
<field name="user_id"/>
<field name="email"/>
<field name="mobile"/>
<field name="phone"/>
<field name="age"/>
<field name="active"/>
</group>
<separator string="Address Information"/>
<field name="addresses" view="form_list"/>
</tab>
<tab string="Professional Information">
<field name="prof_license"/>
<field name="prof_license_date"/>
<field name="level_id" domain="[['type','=',type]]"/>
<field name="prof_license_expiry"/>
<field name="moves" nolabel="1">
<list>
<field name="level_id" domain="[['type','=',parent.type]]"/>
<field name="from_company_id"/>
<field name="to_company_id"/>
<field name="hire_date"/>
<field name="resign_date"/>
<field name="wage"/>
<field name="note"/>
</list>
</field>
</tab>
<tab string="Note">
<field name="note" nolabel="1"/>
</tab>
</tabs>
<related>
<field name="documents"/>
<field name="patients" attrs='{"invisible":[["type","in",["nurse","other"]]]}'/>
<field name="nurse_visits" attrs='{"invisible":[["type","in",["doctor","other"]]]}'/>
<field name="doctor_visits" attrs='{"invisible":[["type","in",["nurse","other"]]]}'/>
<field name="hd_cases"/>
<field name="comments"/>
</related>
</form>