From ececa1f7bf851a884c916f4ad095ba586ecbbd02 Mon Sep 17 00:00:00 2001 From: Juhil Somaiya Date: Wed, 21 Aug 2019 06:14:05 +0000 Subject: [FIX] *: hide technical field widgets in non-debug mode (Studio) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *: - account - barcodes - calenndar - hr_timesheet - mail - mass_mailing - partner_autocomplete - web - website_slides This commit removes description of fields that should not be shown in non-debug mode Studio. Only field widgets whose own description is set are displayed in non-debug mode Studio in "Widget" of sidebar. In other words, even if any ancestor has a description but not the current widget, it won't be displayed in the sidebar in non-debug mode. Task-Id 2056992 closes odoo/odoo#35902 Signed-off-by: Alexandre Kühn (aku) --- addons/web/static/src/js/fields/special_fields.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'addons/web/static/src/js/fields/special_fields.js') diff --git a/addons/web/static/src/js/fields/special_fields.js b/addons/web/static/src/js/fields/special_fields.js index cfadd9f101a..ab040daa4f0 100644 --- a/addons/web/static/src/js/fields/special_fields.js +++ b/addons/web/static/src/js/fields/special_fields.js @@ -16,7 +16,6 @@ var _t = core._t; * the time difference between UTC time and local time, in minutes. */ var FieldTimezoneMismatch = FieldSelection.extend({ - description: "", /** * @override */ @@ -129,7 +128,6 @@ var FieldTimezoneMismatch = FieldSelection.extend({ var FieldReportLayout = relational_fields.FieldMany2One.extend({ // this widget is not generic, so we disable its studio use // supportedFieldTypes: ['many2one', 'selection'], - description: "", events: _.extend({}, relational_fields.FieldMany2One.prototype.events, { 'click img': '_onImgClicked', }), -- cgit v1.2.3