diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 4ae30264ff0..1946cfeb529 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -1337,7 +1337,6 @@ var FieldSelection = AbstractField.extend({ */ init: function () { this._super.apply(this, arguments); - this.values = []; if (this.field.type === 'many2one') { this.values = this.record.specialData[this.name]; } else { @@ -1352,35 +1351,24 @@ var FieldSelection = AbstractField.extend({ // Private //-------------------------------------------------------------------------- - /** - * Format the value to a valid string - * - * @override - * @private - * @param {any} value - * @returns {string} - */ - _formatValue: function (value) { - if (this.field.type === 'many2one') { - var options = _.extend({}, this.nodeOptions); - return field_utils.format.many2one(value, this.field, this.recordData, options); - } else { - return this._super(value); - } - }, /** * @override * @private */ _renderEdit: function () { - this.$el.empty(); - for (var i = 0 ; i < this.values.length ; i++) { - this.$el.append($('