Skip to content

Commit 6894d67

Browse files
author
youness benbraitit (yoben)
committed
[FIX] estate: fixing lint and style issues
1 parent be03363 commit 6894d67

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

estate/models/estate_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _onchange_garden(self):
8989
self.garden_orientation = False
9090

9191
def action_sold(self):
92-
if any([prop.state == "cancelled" for prop in self]):
92+
if any(prop.state == "cancelled" for prop in self):
9393
raise UserError("Canceled property cannot be sold !")
9494
self.state = 'sold'
9595
return True

estate/models/estate_property_offer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def create(self, vals_list):
7878
'You cannot create an offer lower than an existing offer.'
7979
)
8080

81-
offers = super(EstatePropertyOffer, self).create(vals_list)
81+
offers = super().create(vals_list)
8282

8383
for offer in offers:
8484
if offer.property_id:

estate_account/models/estate_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class EstateProperty(models.Model):
55
_inherit = "estate.property"
66

77
def action_sold(self):
8-
res = super(EstateProperty, self).action_sold()
8+
res = super().action_sold()
99

1010
AccountMove = self.env['account.move']
1111
Journal = self.env['account.journal']

0 commit comments

Comments
 (0)