show product venofer in report medical summary
							parent
							
								
									5383a3cc6a
								
							
						
					
					
						commit
						da2a445432
					
				| 
						 | 
				
			
			@ -101,8 +101,12 @@ class ReportMedicalDetail(Model):
 | 
			
		|||
            dom.append(['hd_case_id.branch_id','=',branch_id])
 | 
			
		||||
        if department_id:
 | 
			
		||||
            dom.append(['hd_case_id.department_id','=',department_id])
 | 
			
		||||
        if prod_categ_id:
 | 
			
		||||
            dom.append(['product_categ_id.id','child_of',prod_categ_id])
 | 
			
		||||
        st=get_model("clinic.setting").browse(1)
 | 
			
		||||
        ct_ids=[]
 | 
			
		||||
        for categ in st.product_categ_view:
 | 
			
		||||
            ct_ids.append(categ.id)
 | 
			
		||||
        if ct_ids:
 | 
			
		||||
            dom.append(['product_categ_id.id','in',ct_ids])
 | 
			
		||||
        if product_id:
 | 
			
		||||
            dom.append(['product_id','=',product_id])
 | 
			
		||||
        if types and ids:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -96,7 +96,7 @@ class ReportMedicalSummary(Model):
 | 
			
		|||
        for prod in get_model("product").search_browse(dom):
 | 
			
		||||
            prod_code=prod.code or ""
 | 
			
		||||
            categ=prod.categ_id
 | 
			
		||||
            if categ and categ.parent_id:
 | 
			
		||||
            if categ:
 | 
			
		||||
                categ_ids.update({categ.id})
 | 
			
		||||
            products[prod_code]={}
 | 
			
		||||
            for patient_type_id,type_name in patient_types.items():
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue