#
##############################################################################
+import base64
+import openerp.modules.registry
from openerp.osv import osv
from openerp_sxw2rml import sxw2rml
from StringIO import StringIO
-import base64
from openerp import pooler
from openerp import addons
'report_sxw_content': base64.decodestring(file_sxw),
'report_rml_content': str(sxw2rml(sxwval, xsl=fp.read())),
})
+
+ # FIXME: this should be moved to an override of the ir.actions.report_xml.create() method
+ cr.commit()
pool.get('ir.actions.report.xml').register_all(cr)
+ openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
+
return True
def report_get(self, cr, uid, report_id, context=None):