File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 22from odoo import api , fields , models
33from dateutil .relativedelta import relativedelta
44
5+
56class 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-
You can’t perform that action at this time.
0 commit comments