Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions real_estate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from . import models
12 changes: 12 additions & 0 deletions real_estate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

{
'name': 'real_estate',
'version': '1.0',
'depends': ['base'],
'category': 'tutorials',
'author': "prcha-odoo",
'license': 'LGPL-3',
'description': "A real estate module",
'installable': True,
'application': True,
}
5 changes: 5 additions & 0 deletions real_estate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from . import estate_property
from . import timepass
24 changes: 24 additions & 0 deletions real_estate/models/estate_property.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from odoo import fields, models

class EstateProperty(models.Model):
_name = "estate.property"
_description = "real estate property module"

name = fields.Char(string="Property Name")
description = fields.Text(string="Description")
postcode = fields.Char(string="Postal Code")
date_availability = fields.Date(string="Available Date")
expected_price = fields.Float(string='Expected Price', required=True)
selling_price = fields.Float(string='Selling Price', required=True)
bedrooms = fields.Integer(string="Bedroom Count")
living_area = fields.Integer(string="Living Area Count")
facades = fields.Integer(string="Facades Count")
has_garage = fields.Boolean(string="Has any Garage ?")
has_garden = fields.Boolean(string="Has any Garden ?")
garden_area = fields.Integer(string="Garden Area in (sq meter)")
garden_orientation = fields.Selection(
string="Garden Orientation",
selection=[
('north','North'),('south','South'),('east','East'),('west','West')
]
)