xxx
parent
19e47b6b38
commit
2326aa85b7
|
@ -186,8 +186,20 @@ class ClinicSetting(Model):
|
||||||
for pt, vals in pts.items():
|
for pt, vals in pts.items():
|
||||||
vals=sorted(vals,key=lambda x: x['date'])
|
vals=sorted(vals,key=lambda x: x['date'])
|
||||||
count=len(vals)
|
count=len(vals)
|
||||||
|
no=0
|
||||||
if count > 1:
|
if count > 1:
|
||||||
print(vals)
|
id_lines=[]
|
||||||
|
for val in vals:
|
||||||
|
print(val['id'], val['name'])
|
||||||
|
no+=1
|
||||||
|
pt_id=val['id']
|
||||||
|
if no==len(vals):
|
||||||
|
# hdcase
|
||||||
|
# visit
|
||||||
|
# dialyzer
|
||||||
|
print('---> ', pt_id, id_lines)
|
||||||
|
else:
|
||||||
|
id_lines.append(pt_id)
|
||||||
|
|
||||||
print('='*50, 'staffs duplicate')
|
print('='*50, 'staffs duplicate')
|
||||||
for st in get_model("clinic.staff").search_browse([]):
|
for st in get_model("clinic.staff").search_browse([]):
|
||||||
|
|
Loading…
Reference in New Issue