conv_bal
watcha.h 2014-11-30 13:00:35 +07:00
parent 30424aee4b
commit 9610f7c52e
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ class Schedule(Model):
for line in obj.lines:
nurse=line.nurse_id
level=line.level_id
st+='%s %s\n'%(nurse.name, level.name or "")
cycle=line.cycle_id
st+='C%s %s %s\n'%(cycle.sequence,nurse.name,level.name or "")
count+=1
res[obj.id]='%s'%(st if count else 'No nurse')
return res