reimport
parent
67f5bfa29d
commit
7686215f9b
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue