Skip to content

Commit 292b565

Browse files
[FIX] estate: Server101 Fixing bugs based on cleanup
1 parent dcba33c commit 292b565

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

estate/__manifest__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
'views/estate_property_tag_views.xml',
1414
'views/estate_property_offer_views.xml',
1515
'views/estate_menu_views.xml',
16-
'security/ir.model.access.csv']
16+
'security/ir.model.access.csv'],
17+
'author': 'Odoo S.A.',
18+
'license': 'LGPL-3'
1719

1820
}

estate/models/estate_property.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EstateProperty(models.Model):
2525
description = fields.Text()
2626
postcode = fields.Char()
2727
date_availability = fields.Date("Available From", copy=False, default=lambda self: fields.Datetime.today() + relativedelta(months=3))
28-
last_seen = fields.Date("Last Seen", default=lambda self: fields.Datetime.now)
28+
last_seen = fields.Date("Last Seen", default=lambda self: fields.Datetime.now())
2929
expected_price = fields.Float(required=True)
3030
selling_price = fields.Float(readonly=True, copy=False)
3131
best_price = fields.Float(string="Best Price", compute="_compute_best_price")
@@ -70,7 +70,6 @@ def _compute_total_area(self):
7070
@api.depends('offer_ids')
7171
def _compute_best_price(self):
7272
for record in self:
73-
max: int = 0
7473
if (not record.offer_ids):
7574
record.best_price = 0
7675
continue

estate/views/estate_property_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<header>
3030
<button name="sell_property" type="object" string="Sell"/>
3131
<button name="cancel_property" type="object" string="Cancel"/>
32-
<field name="state" widget="statusbar" statusbar_visible="New,Offer_Received,Offer_Accepted,Sold,Cancelled"/>
32+
<field name="state" widget="statusbar" statusbar_visible="new,offer_received,offer_accepted,sold,cancelled"/>
3333
</header>
3434
<sheet>
3535
<group>

0 commit comments

Comments
 (0)