From affda17c8f6ced5474c1835dae91d837dcefdd5c Mon Sep 17 00:00:00 2001 From: prcha-odoo Date: Thu, 7 May 2026 18:54:09 +0530 Subject: [PATCH 1/2] [ADD] real_estate: added real_estate module Added the basic structure for the new module by creating the and files. --- real_estate/__init__.py | 0 real_estate/__manifest__.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 real_estate/__init__.py create mode 100644 real_estate/__manifest__.py diff --git a/real_estate/__init__.py b/real_estate/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/real_estate/__manifest__.py b/real_estate/__manifest__.py new file mode 100644 index 00000000000..77750872f06 --- /dev/null +++ b/real_estate/__manifest__.py @@ -0,0 +1,11 @@ + +{ + 'name': 'real_estate', + 'version': '1.0', + 'depends': ['base'], + 'category': 'tutorials', + 'author': "prcha-odoo", + 'description': "A real estate module", + 'installable': True, + 'application': True +} From ac2558d4ab01ed499288338b99a7520251d92cb0 Mon Sep 17 00:00:00 2001 From: prcha-odoo Date: Mon, 11 May 2026 18:48:53 +0530 Subject: [PATCH 2/2] [ADD] real_estate: add models and module metadata - Created real estate property model --- real_estate/__init__.py | 4 ++++ real_estate/__manifest__.py | 3 ++- real_estate/models/__init__.py | 5 +++++ real_estate/models/estate_property.py | 24 ++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 real_estate/models/__init__.py create mode 100644 real_estate/models/estate_property.py diff --git a/real_estate/__init__.py b/real_estate/__init__.py index e69de29bb2d..e9917144f69 100644 --- a/real_estate/__init__.py +++ 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 index 77750872f06..f14ba9d8f5a 100644 --- a/real_estate/__manifest__.py +++ b/real_estate/__manifest__.py @@ -5,7 +5,8 @@ 'depends': ['base'], 'category': 'tutorials', 'author': "prcha-odoo", + 'license': 'LGPL-3', 'description': "A real estate module", 'installable': True, - 'application': 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