clinic/netforce_clinic/layouts/clinic_staff_form.xml

105 lines
4.2 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_lines" readonly="1" attrs='{"invisible":[["type","=","doctor"]]}'>
<list colors='{"#9f9":[["cstate","=","validated"]]}'>
<field name="cycle_item_id"/>
<field name="pt_total"/>
<field name="cstate"/>
</list>
<form>
<field name="cycle_item_id" readonly="1"/>
<field name="cstate"/>
</form>
</field>
<!--<field name="patients">-->
<field name="patients" attrs='{"readonly":1,"invisible":[["type","in",["nurse","staff"]]]}'>
<list>
<field name="reg_date"/>
<field name="hn_no"/>
<field name="trt_no"/>
<field name="card_no"/>
<field name="name"/>
<field name="type_id"/>
<field name="department_id"/>
<field name="walkin"/>
<field name="dispose"/>
</list>
</field>
<field name="comments"/>
</related>
</form>