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):
|
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,
|
||||||
|
|
Loading…
Reference in New Issue