Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
12 changes: 12 additions & 0 deletions estate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
'name': 'estate',
'depends': [
'base'
],
'installable': True,
Comment thread
nausicaa73 marked this conversation as resolved.
'application': True,
'author': 'vibad',
'data': ['security/ir.model.access.csv', 'view/estate_property_views.xml', 'view/estate_action.xml']


Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
}
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
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
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
21 changes: 21 additions & 0 deletions estate/models/estate_property.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from odoo import models, fields

class Estate_property(models.Model):
Comment thread
nausicaa73 marked this conversation as resolved.
_name = "estate_property"
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
_description = "APP super mega trop bien"

name = fields.Char(required=True)
Comment thread
nausicaa73 marked this conversation as resolved.
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',
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
selection=[('notrh', 'Notrh'), ('south', 'South'), ('east', 'East'), ('west', 'West')],
help="The garden orientation")
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated
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
acces_estate_property,acces_estate_property,model_estate_property,base.group_user,1,1,1,1
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same empty line comment

8 changes: 8 additions & 0 deletions estate/view/estate_action.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<odoo>
<menuitem id="estate_root" name="Real Estate">
<menuitem id="Advertisements_level_menu" name="Advertisements">
<menuitem id="estate_property_menu_action" action="estate_property_action"/>
Comment thread
nausicaa73 marked this conversation as resolved.
</menuitem>
</menuitem>
</odoo>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same empty line comment

8 changes: 8 additions & 0 deletions estate/view/estate_property_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<odoo>
<record id="estate_property_action" model="ir.actions.act_window">
<field name="name">Properties</field>
<field name="res_model">estate_property</field>
<field name="view_mode">list,form</field>
</record>
</odoo>
Comment thread
nausicaa73 marked this conversation as resolved.
Outdated