3
0
Fork 0

[IMP] web_advanced_search: pre-commit execution

15.0-ocabot-merge-pr-2789-by-pedrobaeza-bump-patch
Ivàn Todorovich 2022-02-21 17:41:15 -03:00
parent 53e031d676
commit 386072b61b
No known key found for this signature in database
GPG Key ID: E7222FC36B138243
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1 @@
../../../../web_advanced_search

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@ -21,9 +21,8 @@ odoo.define("web_advanced_search.CustomFilterItem", function (require) {
_addDefaultCondition() { _addDefaultCondition() {
super._addDefaultCondition(...arguments); super._addDefaultCondition(...arguments);
const condition = this.state.conditions[ const condition =
this.state.conditions.length - 1 this.state.conditions[this.state.conditions.length - 1];
];
condition.index = _.uniqueId("condition_"); condition.index = _.uniqueId("condition_");
} }