summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorLaurent Smet <las@openerp.com>2017-05-09 12:58:27 +0200
committerLaurent Smet <las@openerp.com>2017-05-16 15:37:15 +0200
commitd5fa3232fe6cfdc931fda7132b408f9baa86c57a (patch)
tree2dbc3213153a6a9f6a509de9c2dea785bdca6e16 /addons/web/controllers
parent0a523a16cd21eec7e6fc713e8d1e6901da89250b (diff)
[FIX] base, report: fix some issues due to removed 'report' module.
fix related to task: https://www.odoo.com/web#id=31625&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720 The 'report' module no longer exists but a dependency was still there in l10n_ca. - fix dependency in l10n_ca - fix broken company layout - move layout templates from base to web
Diffstat (limited to 'addons/web/controllers')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 105c8ab7841..d4a0dc8907d 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1592,7 +1592,7 @@ class ReportController(http.Controller):
try:
barcode = request.env['ir.actions.report'].barcode(type, value, width=width, height=height, humanreadable=humanreadable)
except (ValueError, AttributeError):
- raise exceptions.HTTPException(description='Cannot convert into barcode.')
+ raise werkzeug.exceptions.HTTPException(description='Cannot convert into barcode.')
return request.make_response(barcode, headers=[('Content-Type', 'image/png')])