Skip to content

Commit a5040d0

Browse files
committed
[IMP] estate: clean up estate property module
This will clean up the estate property module from styling errors
1 parent 04713dc commit a5040d0

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

estate/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# -*- coding: utf-8 -*-
2-
from . import models
1+
from . import models

estate/__manifest__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
# -*- coding: utf-8 -*-
21
{
3-
'name': "E-State!",
2+
'name': 'E-State!',
43

5-
'summary': """
6-
Manage real estate advertisements
7-
""",
4+
'summary': 'Manage real estate advertisements',
85

96
'description': """
107
Manage advertisements and offers for different real estate properties as part of the "Sever framework 101" tutorial
118
""",
129

13-
'author': "mamr",
10+
'author': 'Odoo',
11+
'website': 'https://www.odoo.com',
12+
1413
'version': '0.1',
1514
'application': True,
1615
'installable': True,

estate/models/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# -*- coding: utf-8 -*-
2-
from . import estate_property
1+
from . import estate_property

estate/models/estate_property.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# -*- coding: utf-8 -*-
2-
3-
from odoo import models, fields
1+
from odoo import fields, models
42

53

64
class EstateProperty(models.Model):
7-
_name = "estate.property"
8-
_description = ""
5+
_name = 'estate.property'
6+
_description = 'Real Estate Property'
97

108
name = fields.Char(required=True)
119
description = fields.Text()
@@ -20,7 +18,6 @@ class EstateProperty(models.Model):
2018
garden = fields.Boolean()
2119
garden_area = fields.Integer()
2220
garden_orientation = fields.Selection(
23-
string="Garden Orientation",
24-
selection=[("north", "North"), ("south", "South"), ("east", "East"), ("west", "West")]
21+
string='Garden Orientation',
22+
selection=[('north', 'North'), ('south', 'South'), ('east', 'East'), ('west', 'West')]
2523
)
26-

0 commit comments

Comments
 (0)