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