diff --git a/addons/web/static/src/views/fields/font_selection/font_selection_field.js b/addons/web/static/src/views/fields/font_selection/font_selection_field.js index 6b2024f8677..c27798b1081 100644 --- a/addons/web/static/src/views/fields/font_selection/font_selection_field.js +++ b/addons/web/static/src/views/fields/font_selection/font_selection_field.js @@ -9,13 +9,9 @@ const { Component } = owl; export class FontSelectionField extends Component { get options() { - const options = this.props.record.fields[this.props.name].selection.filter( + return this.props.record.fields[this.props.name].selection.filter( (option) => option[0] !== false && option[1] !== "" ); - if (!this.isRequired) { - options.unshift([false, this.props.placeholder || ""]); - } - return options; } get isRequired() { return this.props.record.isRequired(this.props.name); diff --git a/addons/web/static/src/views/fields/font_selection/font_selection_field.xml b/addons/web/static/src/views/fields/font_selection/font_selection_field.xml index b079da1164a..6699f82b4e8 100644 --- a/addons/web/static/src/views/fields/font_selection/font_selection_field.xml +++ b/addons/web/static/src/views/fields/font_selection/font_selection_field.xml @@ -7,6 +7,12 @@ +