summaryrefslogtreecommitdiff
path: root/addons/web_editor/models
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/models')
-rw-r--r--addons/web_editor/models/ir_qweb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/models/ir_qweb.py b/addons/web_editor/models/ir_qweb.py
index 0dc6db13315..05b274c9624 100644
--- a/addons/web_editor/models/ir_qweb.py
+++ b/addons/web_editor/models/ir_qweb.py
@@ -228,7 +228,7 @@ class Contact(models.AbstractModel):
# helper to call the rendering of contact field
@api.model
def get_record_to_html(self, ids, options=None):
- return self.value_to_html(self.env['res.partner'].browse(ids[0]), options=options)
+ return self.value_to_html(self.env['res.partner'].search([('id', '=', ids[0])]), options=options)
class Date(models.AbstractModel):