Skip to content
Snippets Groups Projects
Commit c22d3f67 authored by Xavier ALT's avatar Xavier ALT
Browse files

[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
parent 47cc4fbb
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment