forked from Techsystech/web
[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.16.0
parent
dd2644933e
commit
70a79b69cb
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
"name": "Web Widget Domain Editor Dialog",
|
"name": "Web Widget Domain Editor Dialog",
|
||||||
"summary": "Recovers the Domain Editor Dialog functionality",
|
"summary": "Recovers the Domain Editor Dialog functionality",
|
||||||
"version": "13.0.1.0.0",
|
"version": "13.0.1.0.1",
|
||||||
"category": "Web",
|
"category": "Web",
|
||||||
"author": "Tecnativa," "Odoo Community Association (OCA)",
|
"author": "Tecnativa," "Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/web",
|
"website": "https://github.com/OCA/web",
|
||||||
|
|
|
@ -16,6 +16,9 @@ odoo.define("web_widget_domain_editor_dialog.basic_fields", function(require) {
|
||||||
if (this.mode === "readonly") {
|
if (this.mode === "readonly") {
|
||||||
return this._super.apply(this, arguments);
|
return this._super.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
if (!this.value) {
|
||||||
|
this.value = [];
|
||||||
|
}
|
||||||
const dialog = new DomainEditorDialog(this, {
|
const dialog = new DomainEditorDialog(this, {
|
||||||
title: _t("Select records..."),
|
title: _t("Select records..."),
|
||||||
res_model: this._domainModel,
|
res_model: this._domainModel,
|
||||||
|
|
Loading…
Reference in New Issue