conv_bal
watcha.h@almacom.co.th 2015-01-22 17:54:51 +07:00
parent e5171ba0d7
commit 94d32420b5
4 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<form model="clinic.schedule.copy">
<form model="clinic.schedule.copy" title="Copy Schedule To Another Day">
<group form_layout="stacked">
<field name="date_from"/>
<field name="date_to"/>

View File

@ -19,8 +19,9 @@
<field name="cycle_id"/>
<field name="nurse_id" onchange="onchange_nurse" domain='[["department_id","=",parent.department_id]]'/>
<field name="level_id"/>
<field name="note"/>
<field name="state"/>
<field name="cycle_item_id" readonly="1"/>
<field name="note"/>
</list>
</field>
<field name="company_id" invisible="1"/>

View File

@ -225,6 +225,7 @@ class Schedule(Model):
nurse_id=line['nurse_id']
nurse=get_model("clinic.staff").browse(nurse_id)
line['level_id']=nurse.level_id.id
line['state']=nurse.state
return data
def create(self,vals,**kw):

View File

@ -22,6 +22,7 @@ class ScheduleLine(Model):
"nurse_id": fields.Many2One("clinic.staff","Nurse",domain=[['type','=','nurse']]),
'level_id': fields.Many2One("clinic.staff.level","Level",function="_get_level"),
'note': fields.Text("Note"),
"state": fields.Selection([["part_time","Part Time"],["full_time","Full Time"]],"Working Status",search=True),
}
ScheduleLine.register()