clinic/netforce_clinic/layouts/clinic_visit_form.xml

34 lines
1.3 KiB
XML

<form model="clinic.visit" attrs='{"readonly":[["state","in",["cancelled","confirmed"]]]}' show_company="1">
<head>
<field name="state"/>
<button string="Print" icon="print" action="print_visit"/>
<button string="Options" dropdown="1">
<item string="Copy" method="copy"/>
</button>
</head>
<tabs>
<tab string="Visit">
<group span="6" columns="1">
<field name="number"/>
<field name="visit_date"/>
<field name="cycle"/>
<field name="time_use"/>
</group>
<group span="6" columns="1">
<field name="department_id"/>
<field name="patient_id" onchange="onchange_patient"/>
<field name="doctor_id"/>
<field name="nurse_id"/>
</group>
</tab>
</tabs>
<foot>
<button string="Confirm" type="success" method="confirm" states="pending" />
<button string="Reopen" type="default" method="reopen" states="cancelled" />
<button string="Cancel" type="danger" method="cancel" states="confirmed" confirm="Are you sure to cancel HD case?"/>
</foot>
<related>
<field name="comments"/>
</related>
</form>