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