File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 55 'author' : "taskv" ,
66 'category' : 'Category' ,
77 'description' : """
8- Description
8+ Tutorial Project
99 """ ,
1010 'data' : [
1111 ],
Original file line number Diff line number Diff line change 55
66class 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+
You can’t perform that action at this time.
0 commit comments