Skip to content

Commit

Permalink
[FIX] spreadsheet_oca: Filters where failing
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed Jun 6, 2023
1 parent db8bcbe commit 6c5dc3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions spreadsheet_oca/static/src/spreadsheet/bundle/filter.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export class EditFilterPanel extends Component {
ModelFields.push(fields);
}
}
console.log(this.state.objects);
this.models = [
...new Set(
ModelFields.map((field_items) => Object.values(field_items))
Expand Down Expand Up @@ -162,7 +161,7 @@ export class EditFilterPanel extends Component {
this.env.openSidePanel("FilterPanel", {});
}
onFieldMatchUpdate(object, name) {
this.state.objects[object.id].fieldMatch.chain = name.chain;
this.state.objects[object.id].fieldMatch.chain = name;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
resModel="object.model"
readonly="false"
isDebugMode="!!env.debug"
t-on-change="() => this.onChangeFieldSelector(ev)"
update="(name) => this.onFieldMatchUpdate(object, name)"
/>
</div>
Expand Down

0 comments on commit 6c5dc3c

Please sign in to comment.