Fixed bug -> removed raise exception when no xml id found.

--HG--
branch : odoo8
This commit is contained in:
Szeka Wong
2016-02-09 10:16:57 +01:00
parent 7c6388566d
commit 4f2776c2d3
3 changed files with 6 additions and 8 deletions

View File

@@ -51,6 +51,7 @@ class py3o_report(report_sxw):
report_xml_ids = report_xml_obj.search(cr, uid,
[('report_name', '=', self.name[7:])], # Ignore "report."
context=context)
if not report_xml_ids:
return super(py3o_report, self).create(cr, uid, ids, data,
context=context)