mirror of https://github.com/OCA/web.git
[IMP] web_widget_domain_editor_dialog: black, isort, prettier
parent
2a3d49f2ae
commit
4aa309a81c
|
@ -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]]);
|
||||
|
|
Loading…
Reference in New Issue