From 07144438695d76b524aea5c8a3e3aabd7afb1233 Mon Sep 17 00:00:00 2001 From: Arfra Date: Tue, 15 Sep 2026 15:56:59 +0200 Subject: [PATCH 1/6] [ADD] estate: add module for real estate management --- estate/__init__.py | 1 + estate/__manifest__.py | 4 ++++ 2 files changed, 5 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..40a96afc6ff --- /dev/null +++ b/estate/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/estate/__manifest__.py b/estate/__manifest__.py new file mode 100644 index 00000000000..a8eb3807b05 --- /dev/null +++ b/estate/__manifest__.py @@ -0,0 +1,4 @@ +{ + 'name': "Real Estate", + 'depends': ['base'] +} From 36549065ba2605aa0f46b6a12ea4c4414ea707c7 Mon Sep 17 00:00:00 2001 From: Arfra Date: Tue, 15 Sep 2026 16:27:32 +0200 Subject: [PATCH 2/6] [IMP] estate: make the module an application --- estate/__manifest__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/estate/__manifest__.py b/estate/__manifest__.py index a8eb3807b05..6e7d9b0b4cb 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -1,4 +1,5 @@ { 'name': "Real Estate", + 'application': True, 'depends': ['base'] } From cbaf878086162c15e7222497941c638edb33c2d1 Mon Sep 17 00:00:00 2001 From: Arfra Date: Tue, 15 Sep 2026 16:49:27 +0200 Subject: [PATCH 3/6] [IMP] estate: remove unnecessary declaration --- estate/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/estate/__init__.py b/estate/__init__.py index 40a96afc6ff..e69de29bb2d 100644 --- a/estate/__init__.py +++ b/estate/__init__.py @@ -1 +0,0 @@ -# -*- coding: utf-8 -*- From 1cc325516f44b72087909597372cc8b1374c5c01 Mon Sep 17 00:00:00 2001 From: Arfra Date: Thu, 17 Sep 2026 09:54:25 +0200 Subject: [PATCH 4/6] [IMP] estate: add models and properties to real estate module --- estate/__init__.py | 1 + estate/models/__init__.py | 1 + estate/models/estate_property.py | 21 +++++++++++++++++++++ 3 files changed, 23 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..08e810b2800 --- /dev/null +++ b/estate/models/estate_property.py @@ -0,0 +1,21 @@ +from typing import Required + +from odoo import models, fields + +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'),('east', 'East'),('west', 'West'),('south', 'South')]) \ No newline at end of file From 50a0b9b1d33c8228a980eb195fcae2a60878f940 Mon Sep 17 00:00:00 2001 From: Arfra Date: Thu, 17 Sep 2026 13:15:58 +0200 Subject: [PATCH 5/6] [IMP] estate: add security to estate model --- estate/__manifest__.py | 3 ++- estate/security/ir.model.access.csv | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 estate/security/ir.model.access.csv diff --git a/estate/__manifest__.py b/estate/__manifest__.py index 6e7d9b0b4cb..e04833cf6de 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -1,5 +1,6 @@ { 'name': "Real Estate", 'application': True, - 'depends': ['base'] + 'depends': ['base'], + 'data':['security/ir.model.access.csv'] } diff --git a/estate/security/ir.model.access.csv b/estate/security/ir.model.access.csv new file mode 100644 index 00000000000..ddfdcbdc61c --- /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 +estate_property_access,estate.property.access,model_estate_property,base.group_user,1,1,1,1 \ No newline at end of file From 1943e9f10f8815a31cc05ceaf8c3c1cac8b8bdc4 Mon Sep 17 00:00:00 2001 From: Arfra Date: Thu, 17 Sep 2026 17:51:01 +0200 Subject: [PATCH 6/6] [IMP] estate: add menu to estate property module --- estate/__manifest__.py | 2 +- estate/views/estate_menu.xml | 7 +++++++ estate/views/estate_property_views.xml | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 estate/views/estate_menu.xml create mode 100644 estate/views/estate_property_views.xml diff --git a/estate/__manifest__.py b/estate/__manifest__.py index e04833cf6de..77f1e211e6b 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -2,5 +2,5 @@ 'name': "Real Estate", 'application': True, 'depends': ['base'], - 'data':['security/ir.model.access.csv'] + 'data':['security/ir.model.access.csv','views/estate_property_views.xml','views/estate_menu.xml'] } diff --git a/estate/views/estate_menu.xml b/estate/views/estate_menu.xml new file mode 100644 index 00000000000..2c255ad2617 --- /dev/null +++ b/estate/views/estate_menu.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/estate/views/estate_property_views.xml b/estate/views/estate_property_views.xml new file mode 100644 index 00000000000..52feb92965c --- /dev/null +++ b/estate/views/estate_property_views.xml @@ -0,0 +1,7 @@ + + + action + estate_property + list,form + + \ No newline at end of file