Skip to content

Commit b78f9c1

Browse files
committed
[IMP] estate_property:new fields
1 parent 0db978f commit b78f9c1

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

estate/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'author': "taskv",
66
'category': 'Category',
77
'description': """
8-
Description
8+
Tutorial Project
99
""",
1010
'data': [
1111
],

estate/models/estate_property.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,26 @@
55

66
class EstateProperty(models.Model):
77
_name = 'estate.property'
8+
_description = 'Estate Property'
89

9-
name = fields.Char('Estate Property', quired=True, translate='True')
10+
name = fields.Char('Estate Property', required=True, translate='True')
1011
active = fields.Boolean('Active', default=True)
11-
price = fields.Float('Price', default=0)
12+
description = fields.Text('Description')
13+
postcode = fields.Char('Postcode')
14+
date_availability = fields.Date('Date Availability')
15+
expected_price = fields.Float('Expected Price', required=True)
16+
selling_price = fields.Float('Selling Price')
17+
bedrooms = fields.Integer('Bedrooms')
18+
living_area = fields.Integer('Living Area')
19+
facades = fields.Integer('Facades')
20+
garage = fields.Boolean('Garage')
21+
garden = fields.Boolean('Garden')
22+
garden_area = fields.Integer('Garden Area')
23+
garden_orientation = fields.Selection(string='Garden orientation',
24+
selection=[('north', 'North'),
25+
('south', 'South'),
26+
('east', 'East'),
27+
('west', 'West')]
28+
)
29+
30+

0 commit comments

Comments
 (0)