From c22d3f67320f3c3edfdd3d00732021e896f2cda6 Mon Sep 17 00:00:00 2001 From: Xavier ALT Date: Thu, 3 May 2018 10:07:22 +0200 Subject: [PATCH] [FIX] web: widget char_domain should pass context to selection dialog In case we define a field like, when selecting records the dialog should display all records (as asked by the context), but it's not the case. This commit ensure the field context is passed to the selection dialog. opw-1831902 --- addons/web/static/src/js/views/form_widgets.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index b99732774f2..25b4fbed8ba 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -454,6 +454,7 @@ var FieldCharDomain = common.AbstractField.extend(common.ReinitializeFieldMixin, var self = this; var dialog = new common.DomainEditorDialog(this, { res_model: this.options.model || this.field_manager.get_field_value(this.options.model_field), + context: self.build_context(), default_domain: this.get('value'), title: this.get('effective_readonly') ? _t('Selected records') : _t('Select records...'), readonly: this.get('effective_readonly'),