Ran
|
Files
46
|
Run time
3s
|
Badge
Embed ▾
README BADGES
|
travis-ci
[FIX] product: variant num w/o prefetch pollution (backport) This is a backport from https://github.com/odoo/odoo/commit/05a00fa9d When getting: - product_variant_count, - sales_count, of a product.product, we would pollute the records to be prefetched by all the variants when counting the number of variants. Thus if this happened before sales_count, we would possibly compute the sales_count for up to 1000 records when it could have been needed for just one. By using `.with_prefetch()`, a recordset will have its own records to be prefetched list and will not pollute the original one.
4613 of 8997 relevant lines covered (51.27%)
0.51 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|