From ed0e8c04337bc47cfeaf6598acca6720dab06032 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 29 Jan 2016 14:10:27 +0100 Subject: [PATCH] FIX avoid phone numbers on 2 lines in tree view --- base_phone/static/src/js/phone_widget.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base_phone/static/src/js/phone_widget.js b/base_phone/static/src/js/phone_widget.js index 8f75b4d..2307b4b 100644 --- a/base_phone/static/src/js/phone_widget.js +++ b/base_phone/static/src/js/phone_widget.js @@ -128,7 +128,9 @@ openerp.base_phone = function (instance) { res = _super_list_char_format_.call(this, row_data, options); var value = row_data[this.id].value; if (value && this.widget === 'phone') { - return formatInternational('', value); + readable_space = formatInternational('', value); + readable_no_break_space = readable_space.replace(/\s/g, ' '); + return readable_no_break_space; } return res; };