Skip to content
Snippets Groups Projects
Commit fdb23e28 authored by Victor Feyens's avatar Victor Feyens
Browse files

[IMP] *: wrong any() usage


Replace wrong usages of any(list|recordset), by any(generator)
to speed up computations, avoiding list creations and/or looping twice on a recordset
for nothing.

any([generator]) => any(generator)
any(filtered) => any(generator)

closes odoo/odoo#55768

Related: odoo/enterprise#12360
Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
parent 65bf6988
Branches
Tags
No related merge requests found
Showing
with 29 additions and 30 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment