Skip to content

Commit 1966ee9

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 1966ee9

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# -*- coding: utf-8 -*-
21
{
3-
'name': "E-State!",
2+
'name': 'E-State!',
43

54
'summary': """
65
Manage real estate advertisements
@@ -10,7 +9,9 @@
109
Manage advertisements and offers for different real estate properties as part of the "Sever framework 101" tutorial
1110
""",
1211

13-
'author': "mamr",
12+
'author': 'Odoo',
13+
'website': 'https://www.odoo.com',
14+
1415
'version': '0.1',
1516
'application': True,
1617
'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)