Merge pull request #2796 from gurneyalex/8.0-improve_report_not_found_exception

[FIX] lookup_report: exception message when the report is not found
This commit is contained in:
xmo-odoo
2014-09-30 12:54:32 +02:00
+1 -1
View File
@@ -128,7 +128,7 @@ class ir_actions_report_xml(osv.osv):
else:
raise Exception, "Unhandled report type: %s" % r
else:
raise Exception, "Required report does not exist: %s" % r
raise Exception, "Required report does not exist: %s" % name
return new_report