Skip to content

Commit 440b49e

Browse files
committed
[CLN] estate: rename constraint method to match coding guidelines
1 parent cc1af8e commit 440b49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

estate/models/estate_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def action_set_cancelled(self) -> bool:
106106
)
107107

108108
@api.constrains("expected_price", "selling_price")
109-
def _restrict_selling_price(self) -> None:
109+
def _check_selling_price_percentage(self) -> None:
110110
for record in self:
111111
# Selling price is zero when no offer has been accepted
112112
if not float_is_zero(record.selling_price, precision_digits=2) and float_compare(record.selling_price, 0.9 * record.expected_price, precision_digits=2) < 0:

0 commit comments

Comments
 (0)