[IMP] base_report_designer: Improve code
bzr revid: sbh@tinyerp.com-20101112093649-d4ovbz0z8w7vxedy
This commit is contained in:
@@ -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={}):
|
||||
|
||||
Reference in New Issue
Block a user