diff --git a/netforce_clinic/models/report_labor_cost_staff.py b/netforce_clinic/models/report_labor_cost_staff.py index dfd9f79..a764077 100644 --- a/netforce_clinic/models/report_labor_cost_staff.py +++ b/netforce_clinic/models/report_labor_cost_staff.py @@ -73,8 +73,8 @@ class ReportLaborCostStaff(Model): department_id=obj.department_id.id cycle_id=obj.cycle_id.id walkin=obj.walkin - dom.append(['date','>=',date_from]) - dom.append(['date','<=',date_to]) + dom.append(['hd_case_id.date','>=',date_from]) #XXX + dom.append(['hd_case_id.date','<=',date_to]) #XXX dom.append(['hd_case_id.state','in',['waiting_payment','paid']]) if branch_id: dom.append(['hd_case_id.branch_id','=',branch_id]) @@ -83,7 +83,6 @@ 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