Browse Source

FIX avoid phone numbers on 2 lines in tree view

pull/77/head
Alexis de Lattre 9 years ago
parent
commit
ed0e8c0433
  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);
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;
};

Loading…
Cancel
Save