clinic/netforce_clinic/layouts/clinic_staff_form.xml

102 lines
4.0 KiB
XML

<form model="clinic.staff" show_company="1">
<head>
<field name="type"/>
<button string="Options" dropdown="1">
<item string="Copy"/>
</button>
</head>
<field name="number"/>
<field name="type" required="1"/>
<field name="title_id" required="1"/>
<field name="nick_name"/>
<field name="first_name" required="1"/>
<field name="last_name" required="1"/>
<field name="name_eng"/>
<!--<field name="name"/>-->
<field name="company_id" invisible="1"/>
<tabs>
<tab string="General">
<group span="6" columns="1">
<field name="identification"/>
<field name="expiry_card"/>
<field name="gender"/>
<field name="birthday"/>
<field name="nation_id"/>
</group>
<group span="6" columns="1">
<field name="image"/>
<field name="user_id"/>
<field name="employee_id"/>
<field name="email"/>
<field name="mobile"/>
<field name="phone"/>
<field name="age"/>
<field name="active"/>
</group>
</tab>
<tab string="Working Location">
<field name="branch_id" required="1"/>
<field name="department_id" domain='[["branch_id","=",branch_id]]' required="1"/>
<field name="departments"/>
</tab>
<tab string="Professional Information">
<field name="prof_license" attrs='{"invisible":[["type","in",["staff"]]]}'/>
<field name="prof_license_date" attrs='{"invisible":[["type","in",["staff"]]]}'/>
<field name="prof_license_expiry" attrs='{"invisible":[["type","in",["staff"]]]}'/>
</tab>
<tab string="Accounting" perm="staff_tab_account">
<field name="partner_id" domain='[["is_staff","=","true"]]'/>
<field name="categ_id" domain="[['type','=',type]]"/>
<field name="level_id" domain="[['type','=',type]]"/>
<field name="cycle_id"/>
<field name="wage"/>
<field name="max_cycle"/>
<field name="ot_per_cycle"/>
</tab>
<tab string="Note">
<field name="note" nolabel="1"/>
</tab>
</tabs>
<related>
<field name="addresses"/>
<field name="documents"/>
<!--<field name="rotations" 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="max_cycle"/>-->
<!--<field name="wage"/>-->
<!--<field name="note"/>-->
<!--</list>-->
<!--</field>-->
<field name="hd_case_staffs" readonly="1" attrs='{"invisible":[["type","=","nurse"]]}'>
<list colors='{"#cfc":[["state","=","completed"]],"#f9e37d":[["state","=","in_progress"]],"#bcbbb9":[["state","=","cancelled"]],"#ACD1E9":[["state","=","waiting_payment"]],"#70DB93":[["state","=","paid"]]}'>
<field name="hd_case_id"/>
<field name="date"/>
<field name="patient_id"/>
<field name="patient_type_id"/>
<field name="sickbed_id"/>
<field name="cycle_id"/>
<field name="department_id"/>
<field name="state"/>
</list>
<form>
<field name="hd_case_id"/>
</form>
</field>
<field name="cycle_item_nurses" readonly="1" attrs='{"invisible":[["type","=","doctor"]]}'>
<list>
<field name="cycle_item_id"/>
</list>
<form>
<field name="cycle_item_id"/>
</form>
</field>
<field name="patients" readonly="1"/>
<field name="comments"/>
</related>
</form>