2014-11-01 06:04:30 +00:00
|
|
|
<form model="clinic.schedule" attrs='{"readonly":[["state","in",["confirmed"]]]}' show_company="1">
|
2014-10-28 15:16:16 +00:00
|
|
|
<head>
|
2014-11-01 06:04:30 +00:00
|
|
|
<field name="state"/>
|
2014-10-28 15:16:16 +00:00
|
|
|
<button string="Options" dropdown="1">
|
|
|
|
<item string="Copy" method="copy"/>
|
2014-11-14 01:58:12 +00:00
|
|
|
<item string="Copy To Cycle Item" method="copy2cycle_item"/>
|
|
|
|
<item string="Copy Nurses To Schedule" action="clinic_load_nurses"/>
|
2014-10-28 15:16:16 +00:00
|
|
|
</button>
|
|
|
|
</head>
|
2014-11-14 01:58:12 +00:00
|
|
|
<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"/>
|
|
|
|
</list>
|
|
|
|
</field>
|
|
|
|
</group>
|
|
|
|
</tab>
|
|
|
|
<tab string="Planing">
|
|
|
|
<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>
|
2014-11-01 06:04:30 +00:00
|
|
|
<foot>
|
2014-11-14 01:58:12 +00:00
|
|
|
<button string="Confirm" type="success" icon="ok" method="confirm" states="draft" />
|
|
|
|
<button string="Clear List" type="danger" icon="remove" method="clear" states="draft" />
|
2014-11-01 06:04:30 +00:00
|
|
|
<button string="To Draft" type="default" icon="repeat" method="to_draft" states="confirmed" />
|
|
|
|
</foot>
|
2014-10-28 15:16:16 +00:00
|
|
|
</form>
|