[FIX] Skip register reports that have xsl but no xml

bzr revid: cto@openerp.com-20130830125428-s1ameps865er1r7f
This commit is contained in:
Cecile Tonglet
2013-08-30 14:54:28 +02:00
parent d91ba409fd
commit 37ce63ef6f
+1 -1
View File
@@ -100,7 +100,7 @@ class report_xml(osv.osv):
if r['report_rml'] or r['report_rml_content_data']:
report_sxw('report.'+r['report_name'], r['model'],
opj('addons',r['report_rml'] or '/'), header=r['header'])
if r['report_xsl']:
elif r['report_xsl'] and r['report_xml']:
report_rml('report.'+r['report_name'], r['model'],
opj('addons',r['report_xml']),
r['report_xsl'] and opj('addons',r['report_xsl']))