summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorXavier ALT <xal@odoo.com>2018-05-03 10:07:22 +0200
committerXavier ALT <xal@odoo.com>2018-05-16 14:18:17 +0200
commitc22d3f67320f3c3edfdd3d00732021e896f2cda6 (patch)
tree62cdf9948f7cf4b0f4e43b138bd4c2ceda123ede /addons/web/static/src/js
parent47cc4fbbab6e532b056fee26542283bd65978ac7 (diff)
[FIX] web: widget char_domain should pass context to selection dialog
In case we define a field like, <field name="my_domain" widget="char_domain" context="{'active_test': False}"/> 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
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/form_widgets.js1
1 files changed, 1 insertions, 0 deletions
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'),