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">
|
2015-01-11 14:26:08 +00:00
|
|
|
<item string="Copy" action="clinic_schedule_copy"/>
|
2015-01-13 14:33:38 +00:00
|
|
|
<item string="Get Nurse" action="clinic_load_nurses" states="draft"/>
|
|
|
|
<item string="Reset Item" method="clear" confirm="Are you sure to remove all item?" states="draft"/>
|
2014-11-27 00:47:38 +00:00
|
|
|
<item string="To Draft" method="to_draft" states="confirmed"/>
|
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"/>
|
2014-11-22 05:44:41 +00:00
|
|
|
<field name="nurse_id" onchange="onchange_nurse"/>
|
2014-11-21 02:39:26 +00:00
|
|
|
<field name="level_id"/>
|
2014-11-26 07:35:09 +00:00
|
|
|
<field name="note"/>
|
2014-11-22 05:44:41 +00:00
|
|
|
<field name="cycle_item_id" readonly="1"/>
|
2014-11-14 01:58:12 +00:00
|
|
|
</list>
|
|
|
|
</field>
|
2015-01-09 05:19:52 +00:00
|
|
|
<field name="company_id" invisible="1"/>
|
2015-01-14 13:36:23 +00:00
|
|
|
<field name="branch_id" invisible="1"/>
|
2014-11-14 01:58:12 +00:00
|
|
|
</group>
|
|
|
|
</tab>
|
2014-11-17 00:59:19 +00:00
|
|
|
<tab string="Planning">
|
2014-11-14 01:58:12 +00:00
|
|
|
<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" />
|
2014-11-01 06:04:30 +00:00
|
|
|
</foot>
|
2014-10-28 15:16:16 +00:00
|
|
|
</form>
|