Skip to content

Commit 768d70e

Browse files
committed
feat: estate
1 parent b509c0d commit 768d70e

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

estate/__init__.py

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

estate/__manifest__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
# Part of Odoo. See LICENSE file for full copyright and licensing details.
3+
4+
{
5+
'name': 'Estate',
6+
'category': 'Tutorials/Estate',
7+
'summary': 'Real estate application',
8+
'description': "",
9+
'depends': [
10+
'base_setup',
11+
],
12+
'installable': True,
13+
'application': True,
14+
'auto_install': False
15+
}

estate/models/estate_property.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from odoo import models, fields
2+
3+
4+
class EstateProperty(models.Model):
5+
_name = "estate.property"
6+
_description = "Real Estate Property"
7+
8+
name = fields.Char("Estate Name", required=True, translate=True)
9+
price = fields.Integer("Estate Price", default=0)

0 commit comments

Comments
 (0)