Skip to content

Commit 0db978f

Browse files
committed
[IMP] new model: estate_property
1 parent 07ee005 commit 0db978f

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

estate/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# -*- coding: utf-8 -*-
2+
# Part of Odoo. See LICENSE file for full copyright and licensing details.
3+
4+
from . import models

estate/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@
1111
],
1212
'demo': [
1313
],
14+
'installable': True,
15+
'application': True,
16+
'license': 'LGPL-3',
1417
}

estate/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# -*- coding: utf-8 -*-
2+
# Part of Odoo. See LICENSE file for full copyright and licensing details.
3+
4+
from . import estate_property

estate/models/estate_property.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
# Part of Odoo. See LICENSE file for full copyright and licensing details.
3+
4+
from odoo import fields, models
5+
6+
class EstateProperty(models.Model):
7+
_name = 'estate.property'
8+
9+
name = fields.Char('Estate Property', quired=True, translate='True')
10+
active = fields.Boolean('Active', default=True)
11+
price = fields.Float('Price', default=0)

0 commit comments

Comments
 (0)