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 EstateProperty (models .Model ):
5+ _name = "estate_property"
6+ _description = "Estate Property data model"
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+ [
22+ ("north" , "North" ),
23+ ("south" , "South" ),
24+ ("east" , "East" ),
25+ ("west" , "West" ),
26+ ],
27+ help = "Indicates the direction the garden is facing with respect to the house" ,
28+ )
You can’t perform that action at this time.
0 commit comments