File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
Expand file tree Collapse file tree 3 files changed +28
-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 fields , models
2+
3+ class EstateProperty (models .Model ):
4+ _name = "estate_property"
5+ _description = "Estate Property data model"
6+ name = fields .Char (required = True )
7+ description = fields .Text ()
8+ postcode = fields .Char ()
9+ date_availability = fields .Date ()
10+ expected_price = fields .Float (required = True )
11+ selling_price = fields .Float ()
12+ bedrooms = fields .Integer ()
13+ living_area = fields .Integer ()
14+ facades = fields .Integer ()
15+ garage = fields .Boolean ()
16+ garden = fields .Boolean ()
17+ garden_area = fields .Integer ()
18+ garden_orientation = fields .Selection (
19+ selection = [('north' , 'North' ),
20+ ('south' , 'South' ),
21+ ('east' , 'East' ),
22+ ('west' , 'West' )],
23+ help = 'Indicates the direction the garden is facing with respect to the house' )
24+
25+
26+
You can’t perform that action at this time.
0 commit comments