1
- from odoo import models , fields
2
1
import datetime
3
2
3
+ from odoo import fields , models
4
+
5
+
4
6
class Estate_Property (models .Model ):
5
7
_name = "estate.property"
6
8
_description = "Estate Property"
7
9
name = fields .Char ()
8
10
description = fields .Text ()
9
11
postcode = fields .Char ()
10
- date_availability = fields .Date (default = datetime .datetime .now (), copy = False )
12
+ date_availability = fields .Date (
13
+ default = datetime .datetime .now (),
14
+ copy = False ,
15
+ )
11
16
expected_price = fields .Float ()
12
17
selling_price = fields .Float (readonly = True , copyright = False , copy = False )
13
18
bedrooms = fields .Integer (default = 4 )
@@ -17,6 +22,11 @@ class Estate_Property(models.Model):
17
22
has_garden = fields .Boolean ()
18
23
active = fields .Boolean (default = True )
19
24
garden_area = fields .Integer ()
20
- garden_orientation = fields .Selection (selection = [("north" , "North" ), ("south" , "South" ), ("east" , "East" ), ("west" , "West" )])
21
- status = fields .Selection (selection = [("new" , "New" ), ("offer_receieved" , "Offer Recieved" ), ("sold" , "Sold" )], readonly = True , default = "new" )
22
-
25
+ garden_orientation = fields .Selection (
26
+ selection = [("north" , "North" ), ("south" , "South" ), ("east" , "East" ), ("west" , "West" )]
27
+ )
28
+ status = fields .Selection (
29
+ selection = [("new" , "New" ), ("offer_receieved" , "Offer Recieved" ), ("sold" , "Sold" )],
30
+ readonly = True ,
31
+ default = "new" ,
32
+ )
0 commit comments