diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index fda3f40..b7c3e5c 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -292,6 +292,10 @@ class HDCase(Model): line=get_data_path(data,path,parent=True) product_id=line.get('product_id') prod=get_model("product").browse(product_id) + if prod.can_sell: + line['reimbursable']='no' + else: + line['reimbursable']='yes' line['uom_id']=prod.uom_id.id line['description']=prod.name line['product_categ_id']=prod.categ_id.id