diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index 66d700f55c5..f7f548a75c9 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -32,7 +32,7 @@ class Web_Editor(http.Controller): res_id=res_id, field=field, datarecord=json.loads(kwargs['datarecord']), - debug=kwargs.get('debug')) + debug=request.debug) for k in kwargs: if isinstance(kwargs[k], basestring) and kwargs[k].isdigit():