Skip to content

Commit 84cf650

Browse files
committed
[IMP] estate: Add estate_property model
1 parent 68d9688 commit 84cf650

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

estate/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

estate/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import estate_property

estate/models/estate_property.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from odoo import fields, models
2+
3+
class EstateProperty(models.Model):
4+
_name = "estate_property"
5+
_description = "Estate Property data model"
6+
name = fields.Char(required=True)
7+
description = fields.Text()
8+
postcode = fields.Char()
9+
date_availability = fields.Date()
10+
expected_price = fields.Float(required=True)
11+
selling_price = fields.Float()
12+
bedrooms = fields.Integer()
13+
living_area = fields.Integer()
14+
facades = fields.Integer()
15+
garage = fields.Boolean()
16+
garden = fields.Boolean()
17+
garden_area = fields.Integer()
18+
garden_orientation = fields.Selection(
19+
selection=[('north', 'North'),
20+
('south', 'South'),
21+
('east', 'East'),
22+
('west', 'West')],
23+
help = 'Indicates the direction the garden is facing with respect to the house')
24+
25+
26+

0 commit comments

Comments
 (0)