03:15 - Generate a Ready to Deploy Odoo Add-on Directly from UML Diagram
Technical
Location: Millau Room - Technical - 11/7/23, 3:15 PM - 11/7/23, 3:45 PM (+0100) (30 minutes)

03:15 - Generate a Ready to Deploy Odoo Add-on Directly from UML Diagram
Akhmad Daniel Sembiring akhmad.daniel@gmail.com

Akhmad Daniel Sembiring has been implementing Odoo since it was OpenERP 6.1. He is actively contributing in Odoo community by giving talks at Odoo Experience 2022, providing 100+ add-ons published on Odoo Apps Marketplace, writing 50+ E-books on Google Play Books on implementing techniques, development, and optimal configuration and infrastructure setup, as well as publishing 40+ online classes on Udemy and Youtube Channel. Recently, he involved in development some crypto projects that needs integration to Odoo as the backend system.


Thanks to it's advanced framework, we can easily enhance Odoo functionalities to adopt complex business logics by developing new add-ons. More complex business logics requires more complex data structure and tables. Manually writing Python and XML code will make developers struggles to follow add-on development standards and catch the client requirements because handling Python and XML code errors can take hours to solve. On the other hand, clients need that they requirements are already in place as fast as possible.

Unified Modeling Language (UML) diagram is so far the best way to depict and describe the business logics both for end users and developers. It will be nice if we can convert those diagrams directly into running Odoo add-on. Fortunately, it is possible now. One of the available tools is StarUML. It has an extensible feature for us to generate codes from it's class diagram, including Python code and it's related XML view files, the manifest file and other required files, that assembles a complete and ready to deploy Odoo add-on.

This talks discuss how to make and utilize StarUML extension to generate files needed by Odoo add-ons standard. Each class entity is converted into Python class file, XML view for tree, form, action, menu, kanban, and reports, and the security access files as well. All those files are generated in a single folder along with manifest file for a valid odoo add-on. An inherited addon can also be generated for us to write and implement the custom business logics.

So, now business analyst can focus on how the UML diagram to match the bisnis process, preparing the classes and flow. Then execute the generate feature. Developers then can easily implement the custom logic for action buttons, inherit the ORM create, update, delete, and doesn't bother anymore by error prone tasks for manually creating the class, XML, menu, report files, etc.

If you are a Odoo developers or implementor who want to develop add-ons faster than before, than this talks will be very insight-full, as we will discuss not just theories but focus more on practical sample codes.