Skip to content

Commit 5dafd8b

Browse files
committed
[LINT] estate: format file of estate module to remove linting issues.
Previewsly made pull request could not pass because of the linting issues.
1 parent 4a9c637 commit 5dafd8b

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

estate/__init__.py

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

estate/__manifest__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@
1313
'views/estate_menus.xml',
1414

1515
'security/ir.model.access.csv',
16-
]
17-
}
16+
],
17+
'author': 'Odoo S.A.',
18+
'license': 'LGPL-3',
19+
}

estate/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from . import estate_property_type
22
from . import estate_property_tag
33
from . import estate_property_offer
4-
from . import estate_property
4+
from . import estate_property

estate/models/estate_property.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from odoo import api, fields, models
22
from datetime import timedelta
33

4+
45
def default_availability_date(recordset):
56
return fields.Date.context_today(recordset) + timedelta(days=90)
67

8+
79
class EstateProperty(models.Model):
810
_name = "estate.property"
911
_description = "Real Estate Advertisement module"
@@ -27,7 +29,7 @@ class EstateProperty(models.Model):
2729
('west', 'West')
2830
], string='Garden orientation')
2931
total_area = fields.Integer('Total Area', compute='_compute_total_area')
30-
active = fields.Boolean('Active' ,default=True)
32+
active = fields.Boolean('Active', default=True)
3133
state = fields.Selection(selection=[
3234
('new', 'New'),
3335
('offer_received', 'Offer Received'),

estate/models/estate_property_offer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from odoo import api, fields, models
22
from dateutil.relativedelta import relativedelta
33

4+
45
class EstatePropertyOffer(models.Model):
56
_name = "estate.property.offer"
67
_description = "A property offer"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from odoo import fields, models
22

3+
34
class EstatePropertyTag(models.Model):
45
_name = "estate.property.tag"
56
_description = "A property tag"
67

7-
name = fields.Char('Property tag', required=True)
8+
name = fields.Char('Property tag', required=True)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from odoo import fields, models
22

3+
34
class EstatePropertyType(models.Model):
45
_name = "estate.property.type"
56
_description = "A property type is, for example, a house or an apartment. It is a standard business need to categorize properties according to their type, especially to refine filtering."
67

7-
name = fields.Char('Property type', required=True)
8+
name = fields.Char('Property type', required=True)

0 commit comments

Comments
 (0)