clinic/netforce_clinic/layouts/clinic_visit_form.xml

45 lines
1.9 KiB
XML
Raw Normal View History

2014-11-25 01:41:49 +00:00
<form model="clinic.visit" attrs='{"readonly":[["state","in",["confirmed","cancelled"]]]}' show_company="1">
2014-08-19 11:36:46 +00:00
<head>
<field name="state"/>
2014-11-25 01:41:49 +00:00
<button string="Gen No." icon="check" type="primary" method="gen_no" states="draft"/>
2014-10-08 04:36:22 +00:00
<button string="Print" icon="print" action="report_visit_form"/>
2014-08-19 11:36:46 +00:00
<button string="Options" dropdown="1">
2014-10-02 19:12:52 +00:00
<item string="Copy" method="copy"/>
2014-11-25 01:41:49 +00:00
<item string="To Draft" method="to_draft" states="confirmed,cancelled" />
2014-08-19 11:36:46 +00:00
</button>
</head>
<tabs>
2014-10-05 05:47:19 +00:00
<tab string="General">
2014-10-02 02:02:22 +00:00
<group span="6" columns="1">
<field name="number"/>
2014-12-03 17:46:50 +00:00
<field name="time_start" onchange="onchange_datefrom"/>
<field name="cycle_id" onchange="onchange_cycle" required="1"/>
2014-12-20 09:48:29 +00:00
<field name="department_id"/>
2015-01-11 06:09:40 +00:00
<field name="branch_id"/>
2014-10-02 02:02:22 +00:00
</group>
<group span="6" columns="1">
<field name="patient_id" onchange="onchange_patient"/>
2014-10-15 03:49:20 +00:00
<field name="time_stop"/>
2014-10-14 03:57:20 +00:00
<field name="doctor_id"/>
2014-12-03 17:46:50 +00:00
<field name="visit_date" onchange="onchange_date"/>
2015-01-09 05:19:52 +00:00
<field name="company_id" invisible="1"/>
2014-10-02 02:02:22 +00:00
</group>
2014-10-02 00:34:58 +00:00
</tab>
2014-11-29 14:56:15 +00:00
<tab string="Confirmation">
2014-11-02 07:51:17 +00:00
<field name="nurse_id"/>
</tab>
2014-11-17 00:59:19 +00:00
<tab string="Note">
<field name="note" nolabel="1"/>
</tab>
2014-08-19 11:36:46 +00:00
</tabs>
2014-09-11 03:21:52 +00:00
<foot>
2015-01-11 05:29:32 +00:00
<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" />
2014-09-11 03:21:52 +00:00
</foot>
2014-08-19 11:36:46 +00:00
<related>
2014-10-05 08:47:12 +00:00
<field name="hd_cases" readonly="1"/>
2014-10-02 00:34:58 +00:00
<field name="comments"/>
2014-08-19 11:36:46 +00:00
</related>
</form>