summaryrefslogtreecommitdiff
path: root/addons/web_editor/models/ir_qweb.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-07-05 17:36:34 +0200
committerChristophe Matthieu <chm@odoo.com>2016-07-05 18:43:09 +0200
commitae5f853819bb95c76f47f6b37d43348b87db539d (patch)
tree8ab3b2c13afa0d2d37498b0f70a3c41b8cd367ee /addons/web_editor/models/ir_qweb.py
parent3407fb70e4a5b16174234d10d97710572b6f808c (diff)
[IMP] qweb: remove values from record_to_html to avoid crappy code
Diffstat (limited to 'addons/web_editor/models/ir_qweb.py')
-rw-r--r--addons/web_editor/models/ir_qweb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web_editor/models/ir_qweb.py b/addons/web_editor/models/ir_qweb.py
index 362cdcd8a0b..b1c0a165e44 100644
--- a/addons/web_editor/models/ir_qweb.py
+++ b/addons/web_editor/models/ir_qweb.py
@@ -31,7 +31,6 @@ from openerp.osv import orm, fields
from openerp.tools import ustr, DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT
from openerp.tools import html_escape as escape
from openerp.addons.base.ir import ir_qweb
-from openerp.tools.translate import translate
REMOTE_CONNECTION_TIMEOUT = 2.5
@@ -296,7 +295,7 @@ class Image(orm.AbstractModel):
_inherit = 'ir.qweb.field.image'
@api.model
- def record_to_html(self, record, field_name, options, values=None):
+ def record_to_html(self, record, field_name, options):
assert options['tagName'] != 'img',\
"Oddly enough, the root tag of an image field can not be img. " \
"That is because the image goes into the tag, or it gets the " \