continue to copy nurse from prev cycle item even not blank line of nurse
parent
939c3e6f4d
commit
aa2448888d
|
@ -300,7 +300,11 @@ class Visit(Model):
|
|||
for item2 in get_model("clinic.cycle.item").search_browse(dom):
|
||||
lines=[]
|
||||
for line in item2.lines:
|
||||
if not line:
|
||||
continue
|
||||
nr=line.nurse_id
|
||||
if not nr:
|
||||
continue
|
||||
dpt=line.department_id
|
||||
lines.append(('create', {
|
||||
'nurse_id': nr.id,
|
||||
|
|
Loading…
Reference in New Issue