Skip to content

Commit 4a69d2f

Browse files
[IMP] Adding Buildings Model to Estate Module
1 parent e6f8dbd commit 4a69d2f

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

estate/__init__.py

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

estate/models/__init__.py

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

estate/models/buildings_model.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from odoo import models, fields
2+
3+
class buildings_model(models.Model):
4+
_name = 'estate.buildings'
5+
_description = 'Buildings Model'
6+
7+
name = fields.Char()
8+
description = fields.Text()
9+
value = fields.Integer()
10+
garden_orientation = fields.Selection(
11+
'Garden Orientation',
12+
[
13+
('north', 'North'),
14+
('south', 'South'),
15+
('east', 'East'),
16+
('west', 'West')
17+
]
18+
)
19+
20+

0 commit comments

Comments
 (0)