Skip to content

Commit 5e5c3fe

Browse files
committed
[FIX] estate: remove the _ in ValidationError
Problems: - Undefined name '_' Solution: - Removed the '_'
1 parent 7b95e9e commit 5e5c3fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

estate/models/estate_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _onchange_garden(self):
6868
@api.constrains('selling_price')
6969
def _check_price_offer_reasonable(self):
7070
if float_compare(self.selling_price, 0.9 * self.expected_price, 3) <= 0:
71-
raise ValidationError(_('The selling price must be at least 90% of the expected price.'))
71+
raise ValidationError('The selling price must be at least 90% of the expected price.')
7272

7373
@api.ondelete(at_uninstall=False)
7474
def _unlink_property_if_not_new_nor_canceled(self):

estate/models/estate_property_offer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def action_accept(self):
5353
def action_refuse(self):
5454
for offer in self:
5555
if offer.status == 'accepted':
56-
raise UserError(('The offer was already accepted.'))
56+
raise UserError('The offer was already accepted.')
5757
offer.status = 'refused'
5858
return True

0 commit comments

Comments
 (0)