clinic/netforce_clinic/layouts/clinic_schedule_form.xml

42 lines
1.7 KiB
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 By Duration" action="clinic_schedule_copy"/>
<item string="Copy Nurses To Schedule" action="clinic_load_nurses"/>
<item string="Copy Nurses To Cycle Item" method="copy2cycle_item"/>
<item string="Clear Nurses" method="clear" states="draft"/>
</button>
</head>
<tabs>
<tab string="General">
<group form_layout="stacked">
<field name="date" span="3" onchange="onchange_date"/>
<field name="lines" nolabel="1">
<list>
<field name="cycle_id"/>
<field name="nurse_id" onchange="onchange_nurse"/>
<field name="level_id"/>
<field name="note"/>
<field name="cycle_item_id" readonly="1"/>
</list>
</field>
</group>
</tab>
<tab string="Planning">
<group form_layout="stacked">
<field name="time_start" span="3"/>
<field name="time_stop" span="3"/>
</group>
</tab>
<tab string="Confirmation">
<field name="user_id"/>
</tab>
</tabs>
<foot>
<button string="Confirm" type="success" icon="ok" method="confirm" states="draft" />
<button string="To Draft" type="default" icon="repeat" method="to_draft" states="confirmed" />
</foot>
</form>