# Eagle Estates - Part 1
# To-Do's
- Create a new module named
eagle_estates. This module will allow us to manage properties, tenants, contracts and much more! - Create the
__init__.pyand__manifest__.pyfiles and a new foldermodelswith another__init__.pyinside it. - Create a new model called
eagle.propertythat will allow us to manage properties. We will add onto this model in the next part.
# Notes
Please note the following when creating the new model:
- The
eagle.propertymodel should extend themodels.Modelbase class, as it will allow for creation of persistent records. - By convention, the naming of the Python files linked to a model should follow the snake case e.g.
eagle_property.py. - Each model should be contained in its own separate file for maintainability and readability.
Once done, the file structure of the module should look like this:
eagle_estates
├── models
│ ├── __init__.py
│ └── eagle_property.py
├── __init__.py
└── __manifest__.py
And the model should be as follows:
from odoo import models
class EagleProperty(models.Model):
_name = 'eagle.property'
_description = 'Eagle Property'