[MERGE] forward port branch 11.0 up to ad825b673b

This commit is contained in:
Christophe Simonis
2018-04-16 18:34:56 +02:00
120 changed files with 2635 additions and 941 deletions
@@ -1027,6 +1027,21 @@ var FieldPhone = FieldEmail.extend({
this.$el.removeClass('o_text_overflow');
},
/**
* Remove possibly present ­ characters when saving number
*
* @override
* @private
*/
_setValue: function (value, options) {
// NOT NEEDED AS OF SAAS-11.3
if (value) {
// remove possibly pasted ­ characters
value = value.replace(/\u00AD/g, '');
}
return this._super(value, options);
},
/**
* Phone fields are clickable in readonly on small screens ~= on phones.
* This can be overriden by call-capable modules to display a clickable