[FIX] base_report_designer: missing registry signaling, otherwise the report was not available in other workers
bzr revid: odo@openerp.com-20130301152617-c8dem0ozgsnv8esc
This commit is contained in:
parent
261d1c434d
commit
50d1f8675c
|
@ -19,10 +19,11 @@
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
import base64
|
||||||
|
import openerp.modules.registry
|
||||||
from openerp.osv import osv
|
from openerp.osv import osv
|
||||||
from openerp_sxw2rml import sxw2rml
|
from openerp_sxw2rml import sxw2rml
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
import base64
|
|
||||||
from openerp import pooler
|
from openerp import pooler
|
||||||
from openerp import addons
|
from openerp import addons
|
||||||
|
|
||||||
|
@ -55,7 +56,12 @@ class report_xml(osv.osv):
|
||||||
'report_sxw_content': base64.decodestring(file_sxw),
|
'report_sxw_content': base64.decodestring(file_sxw),
|
||||||
'report_rml_content': str(sxw2rml(sxwval, xsl=fp.read())),
|
'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)
|
pool.get('ir.actions.report.xml').register_all(cr)
|
||||||
|
openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def report_get(self, cr, uid, report_id, context=None):
|
def report_get(self, cr, uid, report_id, context=None):
|
||||||
|
|
Loading…
Reference in New Issue