diff --git a/netforce_clinic/models/report_medical_detail.py b/netforce_clinic/models/report_medical_detail.py index 624ed08..5484da7 100644 --- a/netforce_clinic/models/report_medical_detail.py +++ b/netforce_clinic/models/report_medical_detail.py @@ -103,9 +103,7 @@ class ReportMedicalDetail(Model): shop_dom.append(['shop_id.branch_id','=',branch_id]) if department_id: dom.append(['hd_case_id.department_id','=',department_id]) - dom.append(['hd_case_id.patient_id.department_id','=',department_id]) shop_dom.append(['shop_id.department_id','=',department_id]) - shop_dom.append(['shop_id.patient_id.department_id','=',department_id]) st=get_model("clinic.setting").browse(1) ct_ids=[] for categ in st.product_categ_view: diff --git a/netforce_clinic/models/report_medical_summary.py b/netforce_clinic/models/report_medical_summary.py index b7cfddb..d322c33 100644 --- a/netforce_clinic/models/report_medical_summary.py +++ b/netforce_clinic/models/report_medical_summary.py @@ -87,7 +87,6 @@ class ReportMedicalSummary(Model): ['date','>=',time_start], ['date','<=',time_stop], ['department_id','=',department_id], - ['patient_id.department_id','=',department_id], ['branch_id','=',branch_id], ] dom.append(['type','=','stock']) @@ -123,7 +122,6 @@ class ReportMedicalSummary(Model): dom.append(['branch_id','=',branch_id]) if department_id: dom.append(['department_id','=',department_id]) - dom.append(['patient_id.department_id','=',department_id]) if report_type=='completed': dom.append(["state","in",["waiting_payment","paid"]]) else: