File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
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 odoo import models
1+ from odoo import fields , models
22
33
44class Property (models .Model ):
55 _name = "estate.property"
6+ _description = "Real Estate application"
7+
8+ name = fields .Char ('Name' , required = True )
9+ description = fields .Text ('Description' )
10+ postcode = fields .Float ('Postcode' )
11+ date_availability = fields .Date ('Date availability' )
12+ expected_price = fields .Float ('Expected price' , required = True )
13+ selling_price = fields .Float ('Selling price' )
14+ bedrooms = fields .Integer ('Bedrooms' )
15+ living_area = fields .Integer ('Living area' )
16+ facades = fields .Integer ('Facades' )
17+ garage = fields .Boolean ('Garage' )
18+ garden = fields .Boolean ('Garden' )
19+ garden_area = fields .Integer ('Garden area' )
20+ garden_orientation = fields .Selection ([
21+ ('north' , 'North' ),
22+ ('south' , 'South' ),
23+ ('east' , 'East' ),
24+ ('west' , 'West' ),
25+ ], string = 'Garden Orientation' )
You can’t perform that action at this time.
0 commit comments