Skip to content

Commit 85beafe

Browse files
committed
[ADD] real_estate: initial module structure and database table
Created the initial file architecture for the real_estate module, including the necessary directories and manifest file. Implemented the estate.property model using Odoo ORM to define the database table structure required for storing property-related data. This commit sets up the foundation for the module, making it ready for further development of features such as property management, views, and business logic.
1 parent fbf9ee9 commit 85beafe

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

real_estate/__init__.py

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

real_estate/__manifest__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
'name': "Dream Homes",
3+
'version': '1.0',
4+
'depends': ['base'],
5+
'author': "Megha Tulsyani",
6+
# # data files containing optionally loaded demonstration data
7+
# 'demo': [
8+
# 'demo/demo_data.xml',
9+
# ],
10+
'installable': True,
11+
'application': True,
12+
}

real_estate/data/real_estate.xml

Whitespace-only changes.

real_estate/models/__init__.py

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

real_estate/models/real_estate.py

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

0 commit comments

Comments
 (0)