46 lines
2.0 KiB
XML
46 lines
2.0 KiB
XML
<form model="clinic.visit" attrs='{"readonly":[["state","in",["confirmed","cancelled"]]]}' show_company="1">
|
|
<head>
|
|
<field name="state"/>
|
|
<button string="Gen No." icon="check" type="primary" method="gen_no" states="draft"/>
|
|
<button string="Print" icon="print" action="report_visit_form"/>
|
|
<button string="Options" dropdown="1">
|
|
<item string="Copy" method="copy"/>
|
|
<item string="To Draft" method="to_draft" states="confirmed,cancelled" />
|
|
</button>
|
|
</head>
|
|
<tabs>
|
|
<tab string="General">
|
|
<group span="6" columns="1">
|
|
<field name="number"/>
|
|
<field name="time_start" onchange="onchange_datefrom"/>
|
|
<field name="cycle_id" onchange="onchange_cycle" required="1"/>
|
|
<field name="department_id" onchange="onchange_department"/>
|
|
<field name="branch_id" invisible="1"/>
|
|
</group>
|
|
<group span="6" columns="1">
|
|
<field name="patient_id" onchange="onchange_patient"/>
|
|
<field name="time_stop"/>
|
|
<field name="doctor_id"/>
|
|
<field name="visit_date" onchange="onchange_date"/>
|
|
<field name="company_id" invisible="1"/>
|
|
</group>
|
|
</tab>
|
|
<tab string="Confirmation">
|
|
<field name="nurse_id"/>
|
|
</tab>
|
|
<tab string="Note">
|
|
<field name="note" nolabel="1"/>
|
|
</tab>
|
|
</tabs>
|
|
<foot>
|
|
<button string="Pending" perm="clinic_visit_pending" type="default" method="pending" states="draft" />
|
|
<button string="Confirm" perm="clinic_visit_confirm" type="success" method="confirm" states="pending" />
|
|
<button string="Discard" perm="clinic_visit_discard" type="danger" method="cancel" states="pending" />
|
|
<button string="Change Visit" type="default" action="clinic_change_visit" states="pending" />
|
|
</foot>
|
|
<related>
|
|
<field name="hd_cases" readonly="1"/>
|
|
<field name="comments"/>
|
|
</related>
|
|
</form>
|