[13.0][web_widget_domain_editor_dialog][FIX] Error when used in wizards.

When clicking edit the list of record an error happened due to lack
of proper initialization of the default domain.
pull/2038/head
Jordi Ballester Alomar 2021-01-22 19:06:06 +01:00 committed by hkapatel
parent 3a40a6b0a7
commit dbc299683f
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ odoo.define("web_widget_domain_editor_dialog.basic_fields", function(require) {
if (this.mode === "readonly") {
return this._super.apply(this, arguments);
}
if (!this.value) {
this.value = [];
}
const dialog = new DomainEditorDialog(this, {
title: _t("Select records..."),
res_model: this._domainModel,