Skip to content

Commit 6d936e8

Browse files
committed
[FIX] runbot style issues
1 parent 063346e commit 6d936e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

estate/models/estate_property.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ def _onchange_garden(self):
102102
if not self.garden:
103103
self.garden_orientation = "north"
104104
self.garden_area = 10
105-
105+
106106
@api.constrains("state")
107107
def _check_offers_state(self):
108108
self.ensure_one()
109-
if self.state == 'sold' and not [offer for offer in self.offer_ids if offer.status=='accepted']:
109+
if self.state == 'sold' and not [offer for offer in self.offer_ids if offer.status == 'accepted']:
110110
raise exceptions.UserError("You cannot sold a property without accepted offer")
111111

112112
@api.constrains('selling_price', 'expected_price')

estate/tests/test_estate_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class EstateTestCase(TransactionCase):
88

99
@classmethod
1010
def setUpClass(cls):
11-
super(EstateTestCase, cls).setUpClass()
11+
super().setUpClass()
1212

1313
cls.properties = cls.env['estate.property'].create({"name": "Test house", "expected_price": 240000})
1414
cls.partner = cls.env['res.partner'].create({"name": "Partner"})

0 commit comments

Comments
 (0)