File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ from . import models
Original file line number Diff line number Diff line change 1+ from . import estate_property
Original file line number Diff line number Diff line change 1+ from odoo import models , fields
2+
3+
4+ class EstateProperty (models .Model ):
5+ _name = "estate.property"
6+ _description = "Real Estate Property"
7+
8+ name = fields .Char (string = "Property Title" , required = True )
9+ description = fields .Text (string = "Description" )
10+ postcode = fields .Char (string = "Postcode" )
11+ date_availability = fields .Date (string = "Available From" )
12+ expected_price = fields .Float (string = "Expected Price" , required = True )
13+ selling_price = fields .Float (string = "Selling Price" )
14+
15+ bedrooms = fields .Integer (string = "Bedrooms" )
16+ living_area = fields .Integer (string = "Living Area (sqm)" )
17+ facades = fields .Integer (string = "Number of Facades" )
18+ garage = fields .Boolean (string = "Has Garage" )
19+ garden = fields .Boolean (string = "Has Garden" )
20+ garden_area = fields .Integer (string = "Garden Area (sqm)" )
21+ garden_orientation = fields .Selection (
22+ selection = [
23+ ('north' , 'North' ),
24+ ('south' , 'South' ),
25+ ('east' , 'East' ),
26+ ('west' , 'West' ),
27+ ],
28+ string = "Garden Orientation"
29+ )
You can’t perform that action at this time.
0 commit comments