Skip to content

Commit 68b368c

Browse files
committed
added fields and parameters to models estate_property
1 parent 01580c1 commit 68b368c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

estate/models/estate_property.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,20 @@ class EstateProperty(models.Model):
2121
garden_orientation = fields.Selection(
2222
string="Garden Orientation",
2323
selection=[('north',"North"),('south',"South"),('east',"East"),('west',"West")]
24+
)
25+
26+
active= fields.Boolean("Active", default=True)
27+
28+
state = fields.Selection(
29+
selection=[
30+
('new', "New"),
31+
('offer_received', "Offer Received"),
32+
('offer_accepted', "Offer Accepted"),
33+
('sold', "Sold"),
34+
('canceled', "Canceled"),
35+
],
36+
string="Status",
37+
required=True,
38+
copy=False,
39+
default="new",
2440
)

0 commit comments

Comments
 (0)