bzr revid: apa@tinyerp.com-20101007093914-xkvx66xyl5m89tou
This commit is contained in:
apa-tiny 2010-10-07 15:09:14 +05:30
parent 103e0265cb
commit 18e684f924
3 changed files with 1 additions and 5 deletions

View File

@ -29,7 +29,6 @@ from report import report_sxw
class survey_analysis(report_rml):
def create(self, cr, uid, ids, datas, context):
surv_obj = pooler.get_pool(cr.dbname).get('survey')
user_obj = pooler.get_pool(cr.dbname).get('res.users')
rml_obj=report_sxw.rml_parse(cr, uid, surv_obj._name,context)
@ -423,7 +422,7 @@ class survey_analysis(report_rml):
rml += """</document>"""
report_type = datas.get('report_type', 'pdf')
create_doc = self.generators[report_type]
self.pageCount=True
self.internal_header=True
pdf = create_doc(rml, title=self.title)
return (pdf, report_type)

View File

@ -520,9 +520,7 @@ class survey_browse_response(report_rml):
rml += """</story></document>"""
report_type = datas.get('report_type', 'pdf')
create_doc = self.generators[report_type]
self.pageCount=False
pdf = create_doc(rml, title=self.title)
return (pdf, report_type)
survey_browse_response('report.survey.browse.response', 'survey','','')

View File

@ -389,7 +389,6 @@ class survey_form(report_rml):
rml += """</story></document>"""
report_type = datas.get('report_type', 'pdf')
create_doc = self.generators[report_type]
self.pageCount=False
pdf = create_doc(rml, title=self.title)
return (pdf, report_type)