From 1f9a58cc56d632d51b949d2a289bd3c54164100e Mon Sep 17 00:00:00 2001 From: dhsha-odoo Date: Fri, 8 May 2026 15:43:52 +0530 Subject: [PATCH 1/6] [ADD] real_estate: added real_estate module Added the basic structure for the new module by creating the and files. --- estate/__init__.py | 0 estate/__manifest__.py | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 estate/__init__.py create mode 100644 estate/__manifest__.py diff --git a/estate/__init__.py b/estate/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/estate/__manifest__.py b/estate/__manifest__.py new file mode 100644 index 00000000000..c5cfc9f4d86 --- /dev/null +++ b/estate/__manifest__.py @@ -0,0 +1,6 @@ +# __manifest__.py + +{ + 'name': 'estate', + 'version': '1.0', +} \ No newline at end of file From a68a6e4e6ec90c25765a6ebc7503650d66219a86 Mon Sep 17 00:00:00 2001 From: dhsha-odoo Date: Fri, 8 May 2026 18:55:36 +0530 Subject: [PATCH 2/6] [IMP] real_estate: update module manifest metadata --- estate/__manifest__.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/estate/__manifest__.py b/estate/__manifest__.py index c5cfc9f4d86..b5b4a9d9eb6 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -1,6 +1,12 @@ -# __manifest__.py - { - 'name': 'estate', - 'version': '1.0', + "name": "estate", + "version": "1.0", + "summary": "Estate management", + "description": "Estate management", + "author": "Odoo S.A.", + "website": "https://www.odoo.com/", + "category": "Uncategorized", # Module category in Odoo apps + "depends": ["base"], # Required dependency modules + "installable": True, # Allows module installation + "application": True, # Shows as main application } \ No newline at end of file From f88f23996eeeec0208807af53d7503e4d320112e Mon Sep 17 00:00:00 2001 From: dhsha-odoo Date: Mon, 11 May 2026 18:48:12 +0530 Subject: [PATCH 3/6] [ADD] real_estate: add ORM model EstateProperty Created a basic Odoo model with fields: title, description, postcode, expected price, bedrooms, active. --- estate/__init__.py | 1 + estate/models/__init__.py | 1 + estate/models/estate_property.py | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 estate/models/__init__.py create mode 100644 estate/models/estate_property.py diff --git a/estate/__init__.py b/estate/__init__.py index e69de29bb2d..9a7e03eded3 100644 --- a/estate/__init__.py +++ b/estate/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/estate/models/__init__.py b/estate/models/__init__.py new file mode 100644 index 00000000000..f4c8fd6db6d --- /dev/null +++ b/estate/models/__init__.py @@ -0,0 +1 @@ +from . import estate_property \ No newline at end of file diff --git a/estate/models/estate_property.py b/estate/models/estate_property.py new file mode 100644 index 00000000000..868ab64b1a6 --- /dev/null +++ b/estate/models/estate_property.py @@ -0,0 +1,13 @@ +from odoo import fields, models + + +class EstateProperty(models.Model): + _name = "estate.property" + _description = "Real Estate Property" + + name = fields.Char(string="Title", required=True) + description = fields.Text(string="Description") + postcode = fields.Char(string="Postcode") + expected_price = fields.Float() + bedrooms = fields.Integer() + active = fields.Boolean(default=True) \ No newline at end of file From 2bab8c0cd97bb9c16e0731b305fddfd0285c9f3b Mon Sep 17 00:00:00 2001 From: dhsha-odoo Date: Tue, 12 May 2026 18:44:19 +0530 Subject: [PATCH 4/6] [ADD] estate: add ORM model EstateProperty fields Added fields for property details, pricing, area, garden settings, orientation selection, and active state in EstateProperty model. --- estate/models/estate_property.py | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/estate/models/estate_property.py b/estate/models/estate_property.py index 868ab64b1a6..e80a3e20e93 100644 --- a/estate/models/estate_property.py +++ b/estate/models/estate_property.py @@ -8,6 +8,29 @@ class EstateProperty(models.Model): name = fields.Char(string="Title", required=True) description = fields.Text(string="Description") postcode = fields.Char(string="Postcode") - expected_price = fields.Float() - bedrooms = fields.Integer() + + date_availability = fields.Date(string="Available From") + + expected_price = fields.Float(string="Expected Price") + selling_price = fields.Float(string="Selling Price",required=True) + + bedrooms = fields.Integer(string="Bedrooms") + living_area = fields.Integer(string="Living Area") + facades = fields.Integer(string="Facades") + + garage = fields.Boolean(string="Garage") + garden = fields.Boolean(string="Garden") + + garden_area = fields.Integer(string="Garden Area") + + garden_orientation = fields.Selection( + [ + ('north', 'North'), + ('south', 'South'), + ('east', 'East'), + ('west', 'West'), + ], + string="Garden Orientation" + ) + active = fields.Boolean(default=True) \ No newline at end of file From 7ed3e08dbdb93d5b6bdcc3edc5a525c9af76eda2 Mon Sep 17 00:00:00 2001 From: dhsha-odoo Date: Thu, 14 May 2026 18:29:13 +0530 Subject: [PATCH 5/6] [ADD] estate: add model access rights and security manifest entry Added security access configuration for EstateProperty model using ir.model.access.csv and registered the security file in the module manifest to grant internal users CRUD permissions. --- estate/__manifest__.py | 4 ++++ estate/security/ir.model.access.csv | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 estate/security/ir.model.access.csv diff --git a/estate/__manifest__.py b/estate/__manifest__.py index b5b4a9d9eb6..a97aae2b9c8 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -5,8 +5,12 @@ "description": "Estate management", "author": "Odoo S.A.", "website": "https://www.odoo.com/", + "license":"LGPL-3", "category": "Uncategorized", # Module category in Odoo apps "depends": ["base"], # Required dependency modules "installable": True, # Allows module installation "application": True, # Shows as main application + 'data': [ + 'security/ir.model.access.csv', +], } \ No newline at end of file diff --git a/estate/security/ir.model.access.csv b/estate/security/ir.model.access.csv new file mode 100644 index 00000000000..0e11f47e58d --- /dev/null +++ b/estate/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 \ No newline at end of file From ea3d8155bb468d0be3bbebef91020b247c074408 Mon Sep 17 00:00:00 2001 From: dhsha-odoo Date: Fri, 15 May 2026 18:24:58 +0530 Subject: [PATCH 6/6] [ADD] estate: create estate_property_views.xml with window action Added XML data file for estate.property model and defined an ir.actions.act_window action with list and form view modes. --- estate/views/estate_property_views.xml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 estate/views/estate_property_views.xml diff --git a/estate/views/estate_property_views.xml b/estate/views/estate_property_views.xml new file mode 100644 index 00000000000..6f6fa292f76 --- /dev/null +++ b/estate/views/estate_property_views.xml @@ -0,0 +1,7 @@ + + + Test action + test_model + list,form + + \ No newline at end of file