@@ -5,25 +5,23 @@ class EstateProperty(models.Model):
55 _description = "Estate Property"
66
77 name = fields .Char (required = True )
8- description = fields .Text (string = "Description" )
9- postcode = fields .Char (string = "Postcode" )
8+ description = fields .Text ()
9+ postcode = fields .Char ()
1010 date_availability = fields .Date (string = "Available From" , copy = False , default = fields .Date .add (fields .Date .today (), months = 3 ))
11- expected_price = fields .Float (string = "Expected Price" , required = True )
12- selling_price = fields .Float (string = "Selling Price" , readonly = True , copy = False )
13- bedrooms = fields .Integer (string = "Bedrooms" , default = 2 )
11+ expected_price = fields .Float (required = True )
12+ selling_price = fields .Float (readonly = True , copy = False )
13+ bedrooms = fields .Integer (default = 2 )
1414 living_area = fields .Integer (string = "Living Area (sqm)" )
15- facades = fields .Integer (string = "Facades" )
16- garage = fields .Boolean (string = "Garage" )
17- garden = fields .Boolean (string = "Garden" )
15+ facades = fields .Integer ()
16+ garage = fields .Boolean ()
17+ garden = fields .Boolean ()
1818 garden_area = fields .Integer (string = "Total Area (sqm)" )
1919 garden_orientation = fields .Selection (
20- string = "Garden Orientation" ,
2120 selection = [('north' , 'North' ), ('south' , 'South' ), ('east' , 'East' ), ('west' , 'West' )],
2221 help = "The orientation of the Garden"
2322 )
2423 active = fields .Boolean (default = True )
2524 state = fields .Selection (
26- string = "State" ,
2725 selection = [('new' , 'New' ), ('received' , 'Offer Received' ), ('accepted' , 'Offer Accepted' ), ('sold' , 'Sold' ), ('cancelled' , 'Cancelled' )],
2826 required = True ,
2927 copy = False ,
0 commit comments