diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-01-17 10:16:56 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-01-17 10:19:23 +0000 |
| commit | 01cd87794df21d0984140a433e6fdbe5ff5234e5 (patch) | |
| tree | 4bd7126d424557b92c9f01b7a3c0e4c9639a98d9 /addons/web/static/src/js/fields | |
| parent | 15cd94b7461cca1a13b621546f5061a488f0cb81 (diff) | |
[FIX] web: remove the report_layout from studio selectable widgets
Open studio to modify the widget displaying a relational field.
The report_layout widget can be selected, say, to display payment terms.
Obviously it doesn't make sense.
We remove its supported field, as the field is not generic
(indeed there is only one use for it in the codebase).
opw 1919369
closes odoo/odoo#30303
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/special_fields.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/special_fields.js b/addons/web/static/src/js/fields/special_fields.js index 90c4f589989..3d65b83039e 100644 --- a/addons/web/static/src/js/fields/special_fields.js +++ b/addons/web/static/src/js/fields/special_fields.js @@ -122,7 +122,8 @@ var FieldTimezoneMismatch = FieldSelection.extend({ }); var FieldReportLayout = relational_fields.FieldMany2One.extend({ - supportedFieldTypes: ['many2one', 'selection'], + // this widget is not generic, so we disable its studio use + // supportedFieldTypes: ['many2one', 'selection'], events: _.extend({}, relational_fields.FieldMany2One.prototype.events, { 'click img': '_onImgClicked', }), |
