[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
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user