Mastering Odoo 9 Development - 6. Intermediate Odoo Development
Section 6: Now with many of the basics behind us we begin to take our Odoo development skills to the next level by creating new models and learning how to use Many2one relationships between models to create ever more complex Odoo applications. Improve your user interfaces by adding notebooks and pages to your application. You also begin to learn the power of computed fields and how they can be used for specific business requirements.
Video Length: 1:22 HoursSubscription Options
Moving onto Intermediate Odoo Development
Now that we have taken time to learn the Odoo framework basics, how models work and how menus and actions fit together it is time to begin the transition from pure beginner to an Intermediate Odoo Developer.
In this six section you begin creating your own Odoo models from scratch, greatly extending your ability to create more powerful applications
The power of Many2one Models and Relations
One of the powerful capabilities of the Odoo framework is the ability to quickly create relationships between models. In our example we create a new model for menus that then is connected and related to a model for the items (products we have customized previously in the course) for us to store everything we have for a given meal.
Once you understand the power of building relationships between models the sky is the limit. You can build the data structures for most any Odoo application. After you have successfully created your new Odoo models we reinforce how models integrate with actions and menus.
Unlike many courses that are more like a reference. The purpose of this course is for you to Master Odoo Development. So we do repeat the more critical aspects of Odoo development such as creating menu and actions that you will use every single day when developing Odoo Applications.
Creating Custom Odoo Notebooks and Pages
Once we have our new custom models and have connected menus and actions to display them we are only part of the way there. Without a little bit of work our interface is clunky and very hard to use. Fortunately creating a far more functional interface is not all that hard.
We again discuss the advantages of examining the Odoo framework and leverage many of the skills we have already learned to create a Notebook on your custom form. After adding a page to the Notebook we learn how to use an interface widget to display our new models in a way that is easy to use and understand for the user.
Learning about Computed and Related Fields
Once you have the ability for the user to easily view and edit the data within your model you are ready to start creating more powerful and dynamic Odoo applications. Using the power of computed fields you total up all the calories from your meal items and store the total in your meal model. This way any time you add, remove or modify your menu items the total calories is always updated.
To improve the usability of our interface we use related fields to display the calories per serving as we choose the meal items. These are critical skills for anyone wishing to Master Odoo Development.