Skip to content

Commit ce74e7b

Browse files
committed
[FIX] estate: style issues fix
1 parent 472fa60 commit ce74e7b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

estate/models/estate.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,14 @@ def _check_selling_price(self):
105105
if not record.selling_price:
106106
continue
107107

108-
if float_compare(record.selling_price, 0.9 * record.expected_price, precision_digits = 2) == -1:
108+
if (
109+
float_compare(
110+
record.selling_price,
111+
0.9 * record.expected_price,
112+
precision_digits=2,
113+
)
114+
== -1
115+
):
109116
raise ValidationError(
110117
"The selling price can not be less than 90 percent of the expected price"
111118
)

estate/models/property_offer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from odoo import api, fields, models
33
from dateutil.relativedelta import relativedelta
44

5+
56
class PropertyOffer(models.Model):
67
_name = "property_offer"
78
_description = "Property Offer Model"
@@ -51,4 +52,3 @@ def action_refuse_offer(self):
5152
record.status = "refused"
5253
if record.property_id.selling_price == record.price:
5354
record.property_id.selling_price = 0
54-

0 commit comments

Comments
 (0)