From b7fe79696d7322c29f51252a97d7cd7112cc44b4 Mon Sep 17 00:00:00 2001 From: "Aryan pandey (asypa)" Date: Tue, 4 Aug 2026 00:09:46 +0530 Subject: [PATCH 1/3] [ADD] estate : Added new estate module Added estate.property model Defined basic property fields Added understanding of Odoo three-tier architecture Ref-Chapter 1 --- 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..6044f1059fb --- /dev/null +++ b/estate/__manifest__.py @@ -0,0 +1,6 @@ +{ + 'name': 'Real Estate', + 'depends': [ + 'base', + ], +} From a8bef3e7d8be1d0b5c0d043d8b87f849e88b7979 Mon Sep 17 00:00:00 2001 From: "Aryan pandey (asypa)" Date: Tue, 4 Aug 2026 15:09:16 +0530 Subject: [PATCH 2/3] [IMP] estate: new module added Created estate module structure Added init.py and manifest.py Configured base module dependency Enabled module as an installable app [ADD] estate: added feilds in estate property model [ADD] estate: added feilds in estate property model [ADD] estate: added feilds in estate property model [ADD] estate: added feilds in estate property model --- estate/__init__.py | 1 + estate/__manifest__.py | 4 ++++ estate/models/__init__.py | 1 + estate/models/estate_property.py | 28 ++++++++++++++++++++++++++++ 4 files changed, 34 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..0650744f6bc 100644 --- a/estate/__init__.py +++ b/estate/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/estate/__manifest__.py b/estate/__manifest__.py index 6044f1059fb..4b51a4d9c9e 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -3,4 +3,8 @@ 'depends': [ 'base', ], + 'installable': True, + 'application': True, + 'author': 'Odoo a.p.', + 'license': 'LGPL-3', } diff --git a/estate/models/__init__.py b/estate/models/__init__.py new file mode 100644 index 00000000000..5e1963c9d2f --- /dev/null +++ b/estate/models/__init__.py @@ -0,0 +1 @@ +from . import estate_property diff --git a/estate/models/estate_property.py b/estate/models/estate_property.py new file mode 100644 index 00000000000..3fd18960b4a --- /dev/null +++ b/estate/models/estate_property.py @@ -0,0 +1,28 @@ +from odoo import fields, models + + +class EstateProperty(models.Model): + _name = "estate.property" + _description = "Real Estate Property" + + name = fields.Char(required=True) + description = fields.Text() + postcode = fields.Char() + date_availability = fields.Date() + expected_price = fields.Float(required=True) + selling_price = fields.Float() + bedrooms = fields.Integer() + living_area = fields.Integer() + facades = fields.Integer() + garage = fields.Boolean() + garden = fields.Boolean() + garden_area = fields.Integer() + garden_orientation = fields.Selection( + selection=[ + ('north', 'North'), + ('south', 'South'), + ('east', 'East'), + ('west', 'West'), + ], + string="Garden Orientation" + ) From 7e212b6628b881cabc742ec4f632a62654538f5b Mon Sep 17 00:00:00 2001 From: "Aryan pandey (asypa)" Date: Tue, 1 Sep 2026 12:30:19 +0530 Subject: [PATCH 3/3] [IMP] estate: fixed check style bugs --- estate/__manifest__.py | 7 ++- estate/security/ir.model.access.csv | 2 + estate/views/estate_menus.xml | 8 +++ estate/views/estate_property_views.xml | 85 ++++++++++++++++++++++++++ 4 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 estate/security/ir.model.access.csv create mode 100644 estate/views/estate_menus.xml create mode 100644 estate/views/estate_property_views.xml diff --git a/estate/__manifest__.py b/estate/__manifest__.py index 4b51a4d9c9e..6465056994d 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -3,8 +3,13 @@ 'depends': [ 'base', ], + 'data': [ + 'security/ir.model.access.csv', + 'views/estate_property_views.xml', + 'views/estate_menus.xml', + ], 'installable': True, 'application': True, - 'author': 'Odoo a.p.', + 'author': 'Odoo S.A.', 'license': 'LGPL-3', } diff --git a/estate/security/ir.model.access.csv b/estate/security/ir.model.access.csv new file mode 100644 index 00000000000..a6992df6d34 --- /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_user,access_estate_property_user,model_estate_property,base.group_user,1,1,1,1 diff --git a/estate/views/estate_menus.xml b/estate/views/estate_menus.xml new file mode 100644 index 00000000000..4304de05c5e --- /dev/null +++ b/estate/views/estate_menus.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/estate/views/estate_property_views.xml b/estate/views/estate_property_views.xml new file mode 100644 index 00000000000..7768432ad26 --- /dev/null +++ b/estate/views/estate_property_views.xml @@ -0,0 +1,85 @@ + + + + + Properties + estate.property + list,form + + + + estate.property.view.tree + estate.property + + + + + + + + + + + + + + + + + estate.property.view.form + estate.property + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + estate.property.view.search + estate.property + + + + + + + + + + + + + + + +