diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-08-16 17:26:19 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-08-17 16:08:07 +0200 |
| commit | cd0ba4234bfa8ce3156d71f823d29d53b763a418 (patch) | |
| tree | 3d9ea5b646be89629f6843848e05b9902da5c9ab /addons/web/static/src/js/views/view_dialogs.js | |
| parent | 23ddb3ce63b373f634d90fe9be289be844674c58 (diff) | |
[FIX] web: avoid SelectCreateDialog editable list view
As its name indicates, the SelectCreateDialog is meant to select and create,
not edit.
If the view is editable, clicking on an element will edit it instead of
selecting it. For this reason, the view is set in `readonly` even if the view
arch uses the attribute `editable`.
Before this rev., you couldn't select a "Close Reason" when closing a
subscription (in "Search More").
Diffstat (limited to 'addons/web/static/src/js/views/view_dialogs.js')
| -rw-r--r-- | addons/web/static/src/js/views/view_dialogs.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/view_dialogs.js b/addons/web/static/src/js/views/view_dialogs.js index d38400c2e84..558fefd03ac 100644 --- a/addons/web/static/src/js/views/view_dialogs.js +++ b/addons/web/static/src/js/views/view_dialogs.js @@ -343,6 +343,7 @@ var SelectCreateDialog = ViewDialog.extend({ groupBy: searchResult.groupBy, modelName: self.dataset.model, hasSelectors: !self.options.disable_multiple_selection, + readonly: true, }, self.options.list_view_options)); listView.setController(SelectCreateListController); return listView.getController(self); |
