[IMP] web_widget_domain_editor_dialog: black, isort, prettier

pull/2129/head
hkapatel 2021-09-28 15:46:34 +05:30 committed by Carlos Lopez
parent 2a3d49f2ae
commit 4aa309a81c
2 changed files with 11 additions and 11 deletions

View File

@ -30,17 +30,17 @@ odoo.define("web_widget_domain_editor_dialog.DomainEditorDialog", function(requi
let domain = search_data.domain;
if (this.$(".o_list_record_selector input").prop("checked")) {
if (search_data.groupedBy.length) {
group_domain = _.filter(search_data.data, x => {
group_domain = _.filter(search_data.data, (x) => {
return x.res_ids.length;
}).map(x => {
}).map((x) => {
return x.domain;
});
group_domain = _.flatten(group_domain, true);
// Compute domain difference
_.each(domain, d => {
_.each(domain, (d) => {
group_domain = _.without(
group_domain,
_.filter(group_domain, x => {
_.filter(group_domain, (x) => {
return _.isEqual(x, d);
})[0]
);
@ -54,7 +54,7 @@ odoo.define("web_widget_domain_editor_dialog.DomainEditorDialog", function(requi
).concat(group_domain);
}
} else {
const ids = selected_ids.map(x => {
const ids = selected_ids.map((x) => {
return x.id;
});
domain = domain.concat([["id", "in", ids]]);