reimport
parent
67f5bfa29d
commit
7686215f9b
|
@ -103,9 +103,7 @@ class ReportMedicalDetail(Model):
|
||||||
shop_dom.append(['shop_id.branch_id','=',branch_id])
|
shop_dom.append(['shop_id.branch_id','=',branch_id])
|
||||||
if department_id:
|
if department_id:
|
||||||
dom.append(['hd_case_id.department_id','=',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.department_id','=',department_id])
|
||||||
shop_dom.append(['shop_id.patient_id.department_id','=',department_id])
|
|
||||||
st=get_model("clinic.setting").browse(1)
|
st=get_model("clinic.setting").browse(1)
|
||||||
ct_ids=[]
|
ct_ids=[]
|
||||||
for categ in st.product_categ_view:
|
for categ in st.product_categ_view:
|
||||||
|
|
|
@ -87,7 +87,6 @@ class ReportMedicalSummary(Model):
|
||||||
['date','>=',time_start],
|
['date','>=',time_start],
|
||||||
['date','<=',time_stop],
|
['date','<=',time_stop],
|
||||||
['department_id','=',department_id],
|
['department_id','=',department_id],
|
||||||
['patient_id.department_id','=',department_id],
|
|
||||||
['branch_id','=',branch_id],
|
['branch_id','=',branch_id],
|
||||||
]
|
]
|
||||||
dom.append(['type','=','stock'])
|
dom.append(['type','=','stock'])
|
||||||
|
@ -123,7 +122,6 @@ class ReportMedicalSummary(Model):
|
||||||
dom.append(['branch_id','=',branch_id])
|
dom.append(['branch_id','=',branch_id])
|
||||||
if department_id:
|
if department_id:
|
||||||
dom.append(['department_id','=',department_id])
|
dom.append(['department_id','=',department_id])
|
||||||
dom.append(['patient_id.department_id','=',department_id])
|
|
||||||
if report_type=='completed':
|
if report_type=='completed':
|
||||||
dom.append(["state","in",["waiting_payment","paid"]])
|
dom.append(["state","in",["waiting_payment","paid"]])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue