clinic/netforce_clinic/layouts/clinic_schedule_form.xml

22 lines
864 B
XML

<form model="clinic.schedule" attrs='{"readonly":[["state","in",["confirmed"]]]}' show_company="1">
<head>
<field name="state"/>
<button string="Options" dropdown="1">
<item string="Copy" method="copy"/>
<item string="Copy Nurses To Cycle Item" method="copy_nurses"/>
<item string="View Cycle Item" method="view_cycle_item"/>
</button>
</head>
<group form_layout="stacked">
<field name="time_start" span="3"/>
<field name="time_stop" span="3"/>
<field name="cycle_id" span="3"/>
<newline/>
<field name="nurses" span="8"/>
</group>
<foot>
<button string="Confirm" type="success" method="confirm" states="draft" />
<button string="To Draft" type="default" icon="repeat" method="to_draft" states="confirmed" />
</foot>
</form>