Skip to content

Commit af00753

Browse files
committed
[IPM] estate: Add estate_property model
1 parent 12ec0d2 commit af00753

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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(selection=[('north', 'North'), ('south', 'South'), ('east', 'East'), ('west', 'West')],
19+
help = 'Indicates the direction the garden is facing with respect to the house')
20+
21+
22+

0 commit comments

Comments
 (0)