- IMP: Now it's possible to work with the domain editor when the widget
has de in_dialog option.
- FIX: When a boolean opertator was present in the domain, the editor dialog
would raise an error as the default filter couldn't be interpretated.
TT32827
<p><aclass="reference external"href="https://odoo-community.org/page/development-status"><imgalt="Beta"src="https://img.shields.io/badge/maturity-Beta-yellow.png"/></a><aclass="reference external"href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><imgalt="License: AGPL-3"src="https://img.shields.io/badge/licence-AGPL--3-blue.png"/></a><aclass="reference external"href="https://github.com/OCA/web/tree/15.0/web_widget_domain_editor_dialog"><imgalt="OCA/web"src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github"/></a><aclass="reference external"href="https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_widget_domain_editor_dialog"><imgalt="Translate me on Weblate"src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png"/></a><aclass="reference external"href="https://runbot.odoo-community.org/runbot/162/15.0"><imgalt="Try me on Runbot"src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png"/></a></p>
<p><aclass="reference external image-reference"href="https://odoo-community.org/page/development-status"><imgalt="Beta"src="https://img.shields.io/badge/maturity-Beta-yellow.png"/></a><aclass="reference external image-reference"href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><imgalt="License: AGPL-3"src="https://img.shields.io/badge/licence-AGPL--3-blue.png"/></a><aclass="reference external image-reference"href="https://github.com/OCA/web/tree/15.0/web_widget_domain_editor_dialog"><imgalt="OCA/web"src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github"/></a><aclass="reference external image-reference"href="https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_widget_domain_editor_dialog"><imgalt="Translate me on Weblate"src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png"/></a><aclass="reference external image-reference"href="https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=15.0"><imgalt="Try me on Runboat"src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png"/></a></p>
<p>Since v11 introduced the new domain editor widget it’s not possible to edit
the selected records from the current domain.</p>
<p>This module reintroduces that dialog to complement the current widget with the
@@ -375,18 +377,18 @@ powerful search engine of Odoo.</p>
<aclass="reference external image-reference"href="https://odoo-community.org"><imgalt="Odoo Community Association"src="https://odoo-community.org/logo.png"/></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
// HACK: dynamicFilters don't work fine with booleans as they pass through
// pyeval as a jason domain. This way, they're full compatible and we avoid
// making an _rpc call.
domain=domain.map((tuple)=>{
if(tuple[2]===true){
tuple[2]=1;
}
if(tuple[2]===false){
tuple[2]=0;
}
returntuple;
});
this.options=_.defaults(this.options,{
dynamicFilters:[
{
description:_t("Selected domain"),
domain:Domain.prototype.stringToArray(
this.options.default_domain
),
domain:domain,
},
],
});
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.