Skip to content

Commit 1dbcf04

Browse files
committed
[LINT] estate : remove unneccessary list comprehension
1 parent 4ea76b3 commit 1dbcf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

estate/models/estate_property_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ class EstatePropertyType(models.Model):
1818
@api.depends("property_ids")
1919
def _compute_offers_count(self):
2020
for record in self:
21-
record.offer_count = sum([len(property.offer_ids) for property in record.property_ids])
21+
record.offer_count = sum(len(property.offer_ids) for property in record.property_ids)

0 commit comments

Comments
 (0)