Skip to content

Commit bd3010f

Browse files
committed
[FIX] estate: adjustments after first review
1 parent 9a90bd7 commit bd3010f

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ dmypy.json
136136
.run
137137
*/.run/
138138
.odev
139-
*/.odev/
139+
*/.odev/

estate/__manifest__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
'name': "Real Estate",
3-
'version': '1.0',
4-
'summary' "Manage properties and buyers."
5-
'depends': [
6-
'base'
2+
"name": "Real Estate",
3+
"version": "1.0",
4+
"summary": "Manage properties and buyers.",
5+
"depends": [
6+
"base",
77
],
8-
'author': "wimar-odoo",
9-
'description': """
10-
Manage efficiently real estate properties for sale and match them with potential buyers.",
8+
"author": "wimar-odoo",
9+
"description": """
10+
Manage efficiently real estate properties for sale and match them with potential buyers.
1111
""",
12-
'application': True,
13-
'data': [
14-
'security/ir.model.access.csv',
15-
'views/estate_property_views.xml',
16-
'views/estate_menus.xml',
12+
"application": True,
13+
"data": [
14+
"security/ir.model.access.csv",
15+
"views/estate_property_views.xml",
16+
"views/estate_menus.xml",
1717
],
1818
}

estate/models/estate_property.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from odoo import fields, models
22

3+
34
class EstateProperty(models.Model):
45
_name = "estate.property"
56
_description = "Estate Property"
@@ -17,14 +18,14 @@ class EstateProperty(models.Model):
1718
garden = fields.Boolean()
1819
garden_area = fields.Integer(string="Total Area (sqm)")
1920
garden_orientation = fields.Selection(
20-
selection=[('north', 'North'), ('south', 'South'), ('east', 'East'), ('west', 'West')],
21-
help="The orientation of the Garden"
21+
selection=[("north", "North"), ("south", "South"), ("east", "East"), ("west", "West")],
22+
help="The orientation of the Garden",
2223
)
2324
active = fields.Boolean(default=True)
2425
state = fields.Selection(
25-
selection=[('new', 'New'), ('received', 'Offer Received'), ('accepted', 'Offer Accepted'), ('sold', 'Sold'), ('cancelled', 'Cancelled')],
26+
selection=[("new", "New"), ("received", "Offer Received"), ("accepted", "Offer Accepted"), ("sold", "Sold"), ("cancelled", "Cancelled")],
2627
required=True,
2728
copy=False,
2829
default="new",
29-
help="The current state of the property"
30+
help="The current state of the property",
3031
)

estate/views/estate_property_views.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</field>
2323
</record>
2424

25-
<record id="estate.estate_property_form" model="ir.ui.view">
25+
<record id="estate_property_form" model="ir.ui.view">
2626
<field name="name">estate.property.form</field>
2727
<field name="model">estate.property</field>
2828
<field name="arch" type="xml">
@@ -59,7 +59,7 @@
5959
</field>
6060
</record>
6161

62-
<record id="estate.estate_property_search" model="ir.ui.view">
62+
<record id="estate_property_search" model="ir.ui.view">
6363
<field name="name">estate.property.search</field>
6464
<field name="model">estate.property</field>
6565
<field name="arch" type="xml">

0 commit comments

Comments
 (0)