File tree Expand file tree Collapse file tree 4 files changed +32
-1
lines changed Expand file tree Collapse file tree 4 files changed +32
-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 55 'depends' : [
66 'base'
77 ],
8- 'application' : True
8+ 'application' : True ,
9+ 'author' : 'Odoo S.A.' ,
10+ 'license' : 'LGPL-3'
911}
Original file line number Diff line number Diff line change 1+ from . import estate_properties
Original file line number Diff line number Diff line change 1+ from odoo import fields , models
2+
3+ class PropertyModel (models .Model ):
4+ _name = "estate.property"
5+ _description = "Estate Property model"
6+
7+ name = fields .Char ()
8+ description = fields .Text ()
9+ postcode = fields .Char ()
10+ date_availability = fields .Date ()
11+ expected_price = fields .Float ()
12+ selling_price = fields .Float ()
13+ bedrooms = fields .Integer ()
14+ living_area = fields .Integer ()
15+ facades = fields .Integer ()
16+ garage = fields .Boolean ()
17+ garden = fields .Boolean ()
18+ garden_area = fields .Integer ()
19+ garden_orientation = fields .Selection (
20+ string = 'Orientation' ,
21+ selection = [
22+ ('North' , 'north' ),
23+ ('South' , 'south' ),
24+ ('East' , 'east' ),
25+ ('West' , 'west' )
26+ ]
27+ )
You can’t perform that action at this time.
0 commit comments