8000 GitHub - TTrungNg/odoo_tutorials: A repository with the code for the bases and solutions of the official Odoo tutorials
[go: up one dir, main page]

Skip to content

TTrungNg/odoo_tutorials

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odoo Tutorials

Results Achieved

  • Successfully developed the Estate module with full real estate management capabilities, including creating, editing, deleting, and viewing property details.
  • Ensured security compliance and smooth integration with other Odoo components.

Key Implementations

1. Architecture Overview

  • Studied Odoo’s three-tier architecture:
    • Presentation Layer
    • Logic Layer: Python (Odoo ORM).
    • Data Layer: PostgreSQL.

2. Creating a New Application

  • Initialized the Estate module for real estate management.
  • Set up the required directory structure and essential configuration files.

3. Basic Models and Fields

  • Defined the estate.property model with key fields:
    • name, description, expected_price, bedrooms, living_area, etc.

4. Security and Permissions

  • Configured user access rights using:
    • security/ir.model.access.csv – setting model permissions for different user roles.

5. Menu Navigation

  • Created menus and actions in views/estate_menu.xml for module navigation.

6. Basic Views

  • Designed list (tree), form, and search views in views/estate_property_views.xml to display and manage property records.

7. Model Relationships

  • Established One2many, Many2one, and Many2many relationships:
    • Linked estate.property with res.users (sellers) and estate.property.type.

8. Computed Fields and Onchange Methods

  • Implemented computed fields to update values dynamically based on business logic.
  • Used @api.onchange to modify values based on user input.

9. Actions

  • Created server actions for key functionalities:
    • Changing property states.
    • Sending notifications when an offer is received.

10. Constraints for Data Integrity

  • Enforced SQL and Python constraints:
    • Prevented the sale price from being lower than the expected price.
    • Ensured proper business logic validation.

11. User Interface Enhancements

  • Used Odoo widgets to improve UI/UX.

12. Inheritance and Extensibility

  • Used Odoo’s view inheritance system to extend or modify existing views without altering original files.

13. Integration with Other Modules

  • Integrated the Estate module with Odoo’s accounting system (account):
    • Generated invoices automatically when a property is sold.

About

A repository with the code for the bases and solutions of the official Odoo tutorials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.1%
  • JavaScript 9.9%
0