Skip to content

Commit 374992d

Browse files
committed
pipeline guideline adjustements
1 parent a3f6509 commit 374992d

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

estate/__manifest__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@
22
'name': "estate",
33
'version': '0.1',
44
'depends': ['base'],
5-
'data':[
6-
<<<<<<< HEAD
5+
'data': [
76
'security/ir.model.access.csv',
87
'views/estate_property_views.xml',
98
'views/estate_menus.xml',
10-
=======
11-
'security/ir.model.access.csv'
12-
>>>>>>> 6f53f08 (Security)
139
],
1410
'author': "baje",
1511
'category': 'Uncategorized',
1612
'description': """
1713
An app to manage a Real Estate Agency
1814
""",
1915
'application': True,
20-
}
16+
}

estate/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import estate_property
1+
from . import estate_property

estate/models/estate_property.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
from dateutil.relativedelta import relativedelta
33

44
class EstateProperty(models.Model):
5+
56
_name = "estate.property"
67
_description = "estate properties"
78
_order = "id"
89

910
name = fields.Char("Title", required=True)
1011
description = fields.Text("Description")
1112
postcode = fields.Char("Postcode")
12-
date_availability = fields.Date("Available From", default=(fields.Date.today()+relativedelta(months=3)))
13+
date_availability = fields.Date("Available From", default=(fields.Date.today() + relativedelta(months=3)))
1314
expected_price = fields.Float("Expected Price", required=True)
1415
selling_price = fields.Float("Selling Price", readonly=True, copy=False)
1516
bedrooms = fields.Integer("Bedrooms", default=2)
@@ -20,10 +21,10 @@ class EstateProperty(models.Model):
2021
garden_area = fields.Integer("Garden Area (sqm)")
2122
garden_orientation = fields.Selection(
2223
string="Garden Orientation",
23-
selection=[('north',"North"),('south',"South"),('east',"East"),('west',"West")]
24+
selection=[('north',"North"), ('south',"South"), ('east',"East"), ('west',"West")]
2425
)
2526

26-
active= fields.Boolean("Active", default=True)
27+
active = fields.Boolean("Active", default=True)
2728

2829
state = fields.Selection(
2930
selection=[
@@ -37,4 +38,4 @@ class EstateProperty(models.Model):
3738
required=True,
3839
copy=False,
3940
default="new",
40-
)
41+
)

0 commit comments

Comments
 (0)