diff --git a/real_estate/__init__.py b/real_estate/__init__.py new file mode 100644 index 00000000000..e9917144f69 --- /dev/null +++ b/real_estate/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import models \ No newline at end of file diff --git a/real_estate/__manifest__.py b/real_estate/__manifest__.py new file mode 100644 index 00000000000..f14ba9d8f5a --- /dev/null +++ b/real_estate/__manifest__.py @@ -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, +} diff --git a/real_estate/models/__init__.py b/real_estate/models/__init__.py new file mode 100644 index 00000000000..19c0241a16a --- /dev/null +++ b/real_estate/models/__init__.py @@ -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 \ No newline at end of file diff --git a/real_estate/models/estate_property.py b/real_estate/models/estate_property.py new file mode 100644 index 00000000000..7cd851a29ba --- /dev/null +++ b/real_estate/models/estate_property.py @@ -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') + ] + ) \ No newline at end of file