[FIX] web: FieldDomain: open selection with field context

Closes #33658

closes odoo/odoo#34989

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
This commit is contained in:
Aaron Bohy
2019-07-19 12:23:10 +00:00
parent 3295ffe632
commit c1eec46f7e
3 changed files with 32 additions and 1 deletions
@@ -3036,6 +3036,7 @@ var FieldDomain = AbstractField.extend({
new view_dialogs.SelectCreateDialog(this, {
title: _t("Selected records"),
res_model: this._domainModel,
context: this.record.getContext({fieldName: this.name, viewType: this.viewType}),
domain: this.value || "[]",
no_create: true,
readonly: true,