From 5c2b7b82ea7ba683add4b99f30f59d28524ad65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oury=20Bald=C3=A9?= Date: Wed, 13 Dec 2017 17:04:41 +0100 Subject: [PATCH] [FIX] Tree view: display links on phone numbers --- base_phone/static/src/js/phone_widget.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base_phone/static/src/js/phone_widget.js b/base_phone/static/src/js/phone_widget.js index 9508256..91009c4 100644 --- a/base_phone/static/src/js/phone_widget.js +++ b/base_phone/static/src/js/phone_widget.js @@ -130,7 +130,10 @@ openerp.base_phone = function (instance) { if (value && this.widget === 'phone') { readable_space = formatInternational('', value); readable_no_break_space = readable_space.replace(/\s/g, ' '); - return readable_no_break_space; + return _.template("<%-text%>")({ + href: readable_no_break_space, + text: readable_no_break_space + }); } return res; };