clinic/netforce_clinic/layouts/clinic_staff_form.xml

89 lines
3.5 KiB
XML

<form model="clinic.staff" show_company="1">
<head>
<field name="type"/>
<button string="Options" dropdown="1">
<!--<item string="Copy" method="copy"/>-->
<item string="New Staff Rotation" action="clinic_staff_rotate" action_options="form"/>
</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="Departments">
<field name="departments" nolabel="1"/>
</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="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>