continue to copy nurse from prev cycle item even not blank line of nurse

fix_hdcase_sum
watcha.h 2017-07-09 07:57:48 +07:00
parent 939c3e6f4d
commit aa2448888d
1 changed files with 4 additions and 0 deletions

View File

@ -300,7 +300,11 @@ class Visit(Model):
for item2 in get_model("clinic.cycle.item").search_browse(dom): for item2 in get_model("clinic.cycle.item").search_browse(dom):
lines=[] lines=[]
for line in item2.lines: for line in item2.lines:
if not line:
continue
nr=line.nurse_id nr=line.nurse_id
if not nr:
continue
dpt=line.department_id dpt=line.department_id
lines.append(('create', { lines.append(('create', {
'nurse_id': nr.id, 'nurse_id': nr.id,