Skip to content

Commit 21cd935

Browse files
committed
[IMP] estate: add list view and form view and improve syntax
In estate module add basic views list view and form view Also add filter for new or offer received stage improve syntax in estate_property model
1 parent 7775386 commit 21cd935

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

estate/models/estate_property.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,22 @@ class EstateProperty(models.Model):
1818
garage = fields.Boolean()
1919
garden = fields.Boolean()
2020
garden_area = fields.Integer(string="Garden Area (sqm)")
21-
garden_orientation=fields.Selection(string='Garden Orientation',selection=[('north', 'North'), ('south', 'South'), ('east','East'), ('west','West')])
21+
garden_orientation=fields.Selection(
22+
string='Garden Orientation',
23+
selection=[('north', 'North'),
24+
('south', 'South'),
25+
('east','East'),
26+
('west','West')
27+
]
28+
)
2229
active=fields.Boolean(default=False)
23-
state=fields.Selection(selection=[('new','New'),('offer_received','Offer Received'),('offer_accepted','Offer Accepted'),('sold','Sold'),('cancelled','Cancelled')])
30+
state=fields.Selection(
31+
selection=[
32+
('new','New'),
33+
('offer_received','Offer Received'),
34+
('offer_accepted','Offer Accepted'),
35+
('sold','Sold'),
36+
('cancelled','Cancelled')
37+
]
38+
)
2439

0 commit comments

Comments
 (0)