diff options
| author | Juhil Somaiya <jso@odoo.com> | 2019-08-21 06:14:05 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2019-09-23 15:00:44 +0000 |
| commit | ececa1f7bf851a884c916f4ad095ba586ecbbd02 (patch) | |
| tree | e6c8f0b97754946c05e4f68f57a54476f1022c69 /addons/web/static/src/js/fields/relational_fields.js | |
| parent | e4fc7568c1252bb9fe68f52411f99d132ec3b94f (diff) | |
[FIX] *: hide technical field widgets in non-debug mode (Studio)
*:
- 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) <aku@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/relational_fields.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index b89900c9b3b..9ef8241f9f3 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -817,7 +817,9 @@ var FieldMany2One = AbstractField.extend({ }); var Many2oneBarcode = FieldMany2One.extend({ - description: "", + // We don't require this widget to be displayed in studio sidebar in + // non-debug mode hence just extended it from its original widget, so that + // description comes from parent and hasOwnProperty based condition fails }); var ListFieldMany2One = FieldMany2One.extend({ |
