[IMP] base_report_designer: Improve code

bzr revid: sbh@tinyerp.com-20101112093649-d4ovbz0z8w7vxedy
This commit is contained in:
sbh (Open ERP)
2010-11-12 15:06:49 +05:30
parent ad690c69d9
commit 3ae841b50a
@@ -55,8 +55,9 @@ class report_xml(osv.osv):
'report_sxw_content': base64.decodestring(file_sxw),
'report_rml_content': str(sxw2rml(sxwval, xsl=fp.read())),
})
db = pooler.get_db_only(cr.dbname)
self.pool.get('ir.actions.report.xml').register_all(cr = db.cursor())
self.pool.get('ir.actions.report.xml').register_all(cr = cr)
cr.commit()
return True
def report_get(self, cr, uid, report_id, context={}):