can not access patient

report_acc_hdcase_summary
watcha.h 2016-11-29 23:29:39 +07:00
parent dab8603d7d
commit c708149d54
1 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import time
from calendar import monthrange
from netforce.model import Model,fields,get_model
from netforce.access import get_active_company
from netforce.access import get_active_company, set_active_user, get_active_user
from . import utils
@ -78,6 +78,9 @@ class ReportHDCaseDetail(Model):
return res
def get_report_data(self,ids,context={}):
user_id=get_active_user()
set_active_user(1)
company_id=get_active_company()
company=get_model("company").browse(company_id)
defaults=self.default_get(context=context)
@ -341,6 +344,7 @@ class ReportHDCaseDetail(Model):
'company_name': '%s %s'% (company.name or "", sub_name),
'parent_company_name': company.parent_id.name or "",
}
set_active_user(user_id)
return data
def onchange_date(self,context={}):