Skip to content

Commit

Permalink
[ADD] estate: Added new real estate property management module
Browse files Browse the repository at this point in the history
The new module includes:
- Model: estate.property with fields such as name, description, selling_price,
availability_date, bedrooms, state, and active.
- Views: Tree and form views for managing estate properties.
- Security: Access rights defined in ir.model.access.csv.
  • Loading branch information
akya-odoo committed Aug 1, 2024
1 parent 629dbab commit f88c0f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion estate/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import models
from . import models
1 change: 0 additions & 1 deletion estate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
'security/ir.model.access.csv',
'views/estate_property_views.xml',
'views/estate_menus.xml',

],
'installable': True,
'application': True,
Expand Down
2 changes: 1 addition & 1 deletion estate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import estate_property
from . import estate_property
6 changes: 2 additions & 4 deletions estate/models/estate_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class EstateProperty(models.Model):
Description = fields.Text()
Postcode = fields.Char()
Availability_date = fields.Date(copy=False)
Expected_price = fields.Float(required=True,default=0.0)
Selling_price = fields.Float(string="Selling Price",readonly=True)
Expected_price = fields.Float(required=True, default=0.0)
Selling_price = fields.Float(string="Selling Price", readonly=True)
Bedrooms = fields.Integer(default=2)
Living_area = fields.Integer()
Facades = fields.Integer()
Expand All @@ -25,7 +25,5 @@ class EstateProperty(models.Model):
state = fields.Selection([
('new', 'New'),
('used', 'Used'),

], string='Status', default='draft')
active = fields.Boolean(string='Active', default=True)

0 comments on commit f88c0f2

Please sign in to comment.