Skip to content

Commit 8d65340

Browse files
committed
[ADD] estate: added models and basic field
1 parent 24e63d0 commit 8d65340

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

estate/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import estate_proprety

estate/models/estate_proprety.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from odoo import fields, models
2+
3+
class EstateProprety(models.Model):
4+
_name = "estate.proprety"
5+
_description = "Estate Proprety"
6+
7+
name = fields.Char('Estate Name', required=True)
8+
description = fields.Text('Estate Description', required=True)
9+
postcode = fields.Char('Estate Postcode', required=True)
10+
date_availablity = fields.Date('Estate Availability Date', required=True)
11+
expected_price = fields.Float('Estate expected price', required=True)
12+
selling_price = fields.Float('Estate selling price', required=True)
13+
bedrooms = fields.Integer('Number of bedrooms',required=True)
14+
facades = fields.Integer('Number of facades')
15+
garage = fields.Boolean('Has a garage ?')
16+
garden = fields.Boolean('Has a garden ?')
17+
garden_area = fields.Integer('Garden area')
18+
garden_orientation = fields.Selection(
19+
string='Type',
20+
selection=[('north','North'),('south','South'),('west','West'),('east','East')],
21+
help="Garden orientation selection"
22+
)

0 commit comments

Comments
 (0)