summaryrefslogtreecommitdiff
path: root/addons/web_editor/models/ir_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/models/ir_http.py')
-rw-r--r--addons/web_editor/models/ir_http.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/web_editor/models/ir_http.py b/addons/web_editor/models/ir_http.py
index c72fee55e83..238b488716e 100644
--- a/addons/web_editor/models/ir_http.py
+++ b/addons/web_editor/models/ir_http.py
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
-from openerp.osv import orm
-from openerp.http import request
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from odoo import models
+from odoo.http import request
-class ir_http(orm.AbstractModel):
+
+class IrHttp(models.AbstractModel):
_inherit = 'ir.http'
def _dispatch(self):
@@ -13,4 +15,4 @@ class ir_http(orm.AbstractModel):
request.context['edit_translations'] = True
if request.context.get('lang') != "en_US" and 'translatable' not in request.context:
request.context['translatable'] = True
- return super(ir_http, self)._dispatch()
+ return super(IrHttp, self)._dispatch()