Skip to content
Snippets Groups Projects
Commit 1cc6bb12 authored by Victor Feyens's avatar Victor Feyens Committed by Thibault Delavallée
Browse files

[IMP] various: improve code style and performance by improve ``all()`` usage


PURPOSE

Clean code. Be more performance oriented.

SPECIFICATIONS

Improvements applied in this commit

  * not all() --> any(not) for earlier returns;
  * all([generator]) --> all(generator) to avoid unnecessary list casting.
    This code construct is better managed by all;

This commit will probably not have a big performance effect on standard
production databases. However each performance and cleaning improvement
is welcomed.

LINKS

Task ID-2328619

closes odoo/odoo#56060

Related: odoo/enterprise#12486
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent df06d7f9
Branches
Tags
No related merge requests found
Showing
with 28 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