From d56b90acc7932d2cdf1838ef024db85d22f053a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Faruk=20Avc=C4=B1?= <55799734+Faruk372742@users.noreply.github.com> Date: Mon, 15 Dec 2025 14:12:50 +0100 Subject: [PATCH 1/3] [ADD] estate: initialize the estate app Creating the manifest file. --- estate/__init__.py | 0 estate/__manifest__.py | 16 ++++++++++++++++ 2 files changed, 16 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..b0f00a1cd33 --- /dev/null +++ b/estate/__manifest__.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +{ + 'name': "estate", + + 'author': "Faruk", + 'website': "", + 'category': 'Tutorials', + 'version': '0.1', + 'application': True, + 'installable': True, + 'application': True, + 'depends': ['base'], + + 'data': [], + 'assets': {}, +} From 0bcf9f84dc827aff1c3a1776f974cbf3a1fc241a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Faruk=20Avc=C4=B1?= <55799734+Faruk372742@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:41:35 +0100 Subject: [PATCH 2/3] [ADD] estate: adding estate property table --- estate/__init__.py | 1 + estate/models/__init__.py | 1 + estate/models/estate_property.py | 17 +++++++++++++++++ 3 files changed, 19 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..5eba9f6eca8 --- /dev/null +++ b/estate/models/estate_property.py @@ -0,0 +1,17 @@ +from odoo import fields, models +class EstateProperty(models.Model): + _name = "estate_property" + _description = "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(string="Orientation", selection = [("North", "North"), ("South", "South"), ("East", "East"), ("West", "West")]) \ No newline at end of file From 5d00b6d99d6e73669f599b2c7167f228adb3585b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Faruk=20Avc=C4=B1?= <55799734+Faruk372742@users.noreply.github.com> Date: Mon, 15 Dec 2025 16:08:15 +0100 Subject: [PATCH 3/3] [ADD] estate: adding security for estate_property table New ir.model.access file to adding all kind of accesses to the base.group_user and connecting csv file to manifest --- estate/__manifest__.py | 4 +++- estate/security/ir.model.access.csv | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 estate/security/ir.model.access.csv diff --git a/estate/__manifest__.py b/estate/__manifest__.py index b0f00a1cd33..0bfca20bd6a 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -11,6 +11,8 @@ 'application': True, 'depends': ['base'], - 'data': [], + 'data': [ + 'security/ir.model.access.csv' + ], 'assets': {}, } diff --git a/estate/security/ir.model.access.csv b/estate/security/ir.model.access.csv new file mode 100644 index 00000000000..976b61e8cb3 --- /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