[hd_case] get doctor name
parent
9cc5e7245b
commit
afca84692b
|
@ -1324,6 +1324,10 @@ class HDCase(Model):
|
||||||
doctor+= 1
|
doctor+= 1
|
||||||
else:
|
else:
|
||||||
nurse+=1
|
nurse+=1
|
||||||
|
if not doctor_id:
|
||||||
|
for ps in obj.staffs:
|
||||||
|
if ps.type=="doctor":
|
||||||
|
doctor_id=ps.staff_id.id
|
||||||
res[obj.id]={
|
res[obj.id]={
|
||||||
'total_doctor': doctor,
|
'total_doctor': doctor,
|
||||||
'total_nurse': nurse,
|
'total_nurse': nurse,
|
||||||
|
|
|
@ -83,6 +83,7 @@ class ReportLaborCostStaff(Model):
|
||||||
if cycle_id:
|
if cycle_id:
|
||||||
dom.append(['hd_case_id.cycle_id','=',cycle_id])
|
dom.append(['hd_case_id.cycle_id','=',cycle_id])
|
||||||
lines=[]
|
lines=[]
|
||||||
|
print('dom ', dom)
|
||||||
for sline in get_model("clinic.hd.case.staff").search_browse(dom):
|
for sline in get_model("clinic.hd.case.staff").search_browse(dom):
|
||||||
hdcase=sline.hd_case_id
|
hdcase=sline.hd_case_id
|
||||||
staff=sline.staff_id
|
staff=sline.staff_id
|
||||||
|
|
Loading…
Reference in New Issue