Skip to content

Commit

Permalink
[FIX] chap5: style
Browse files Browse the repository at this point in the history
  • Loading branch information
malm-odoo committed Oct 22, 2024
1 parent c4f68fa commit c929665
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion estate/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import models
from . import models
2 changes: 1 addition & 1 deletion estate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
'views/estate_menus.xml',
],
'license': 'LGPL-3',
}
}
2 changes: 1 addition & 1 deletion estate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import estate_property
from . import estate_property
5 changes: 3 additions & 2 deletions estate/models/estate_property.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from odoo import models, fields
from dateutil.relativedelta import relativedelta


class EstateProperty(models.Model):
_name = "estate_property"
_description = "Create real estate properties and keep track of status"

name = fields.Char(required=True)
description = fields.Text()
postcode = fields.Char()
date_availability = fields.Date(default=fields.Datetime.today()+relativedelta(months=3), copy=False)
date_availability = fields.Date(default=fields.Datetime.today() + relativedelta(months=3), copy=False)
expected_price = fields.Float(required=True)
selling_price = fields.Float(readonly=True, copy=False)
bedrooms = fields.Integer(default=2)
Expand All @@ -25,4 +26,4 @@ class EstateProperty(models.Model):
state = fields.Selection(
string='State',
selection=[('new', 'New'), ('offer_received', 'Offer Received'), ('offer_accepted', 'Offer Accepted'), ('sold', 'Sold'), ('cancelled', "Cancelled")]
)
)

0 comments on commit c929665

Please sign in to comment.