File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ from . import models
Original file line number Diff line number Diff line change
1
+
2
+ from . import estate_property
Original file line number Diff line number Diff line change
1
+
2
+ from odoo import models , fields
3
+
4
+ class EstateProperty (models .Model ):
5
+ _name = "estate.property"
6
+ _description = "Real Estate module"
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 = 'Type' ,
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