Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions estate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
11 changes: 11 additions & 0 deletions estate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
'name': 'Real Estate',
'version': '1.9',
'depends': [
'base',
],
'data': [
'security/ir.model.access.csv',
],
'application': True,
}
1 change: 1 addition & 0 deletions estate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import estate_property
25 changes: 25 additions & 0 deletions estate/models/estate_property.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from odoo import fields, models


class EstateProperty(models.Model):
_name = "realestate.estate.properties"
_description = "Real estate properties"

name = fields.Char('Plan Name', required=True, translate=True)
description = fields.Text('Notes')
postcode = fields.Char('Postcode', required=True)
date_availability = fields.Date('Availability date')
expected_price = fields.Float('Expected price', required=True)
selling_price = fields.Float('Selling price')
bedrooms = fields.Integer('Bedrooms')
living_area = fields.Integer('Living area')
facades = fields.Integer('Facades')
garages = fields.Boolean('Garages')
garden = fields.Boolean('Garden')
garden_area = fields.Integer('Garden area')
garden_orientation = fields.Selection([
('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West'),
])
2 changes: 2 additions & 0 deletions estate/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
estate.access_realestate_estate_properties,access_realestate_estate_properties,estate.model_realestate_estate_properties,base.group_user,1,1,1,1