Browse Source

FIX avoid phone numbers on 2 lines in tree view

pull/83/head
Alexis de Lattre 9 years ago
committed by Sebastien LANGE
parent
commit
8eed26bf23
  1. 4
      base_phone/static/src/js/phone_widget.js

4
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); res = _super_list_char_format_.call(this, row_data, options);
var value = row_data[this.id].value; var value = row_data[this.id].value;
if (value && this.widget === 'phone') { 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; return res;
}; };

Loading…
Cancel
Save