3
0
Fork 0

Merge PR #2531 into 14.0

Signed-off-by pedrobaeza
14.0
OCA-git-bot 2023-06-15 15:00:08 +00:00
commit 5c874f9d65
1 changed files with 11 additions and 10 deletions

View File

@ -26,19 +26,20 @@ odoo.define(
queryElem_val.operator === operator queryElem_val.operator === operator
); );
if (!queryElem) { if (!queryElem) {
const {groupId} = this.state.filters[filterId];
this.state.query.push({
filterId,
groupId,
label,
value,
operator,
});
if (isShiftKey) { if (isShiftKey) {
const group_id = Math.random(); const groupId = Math.random();
this.state.query.push({ this.state.query.push({
filterId, filterId,
group_id, groupId,
label,
value,
operator,
});
} else {
const {groupId} = this.state.filters[filterId];
this.state.query.push({
filterId,
groupId,
label, label,
value, value,
operator, operator,