Chapter 16: The final word¶
Coding guidelines¶
We will start refactoring the code to match to the Odoo coding guidelines. The guidelines aim to improve the quality of the Odoo Apps code.
Reference: you will find the Odoo coding guidelines in Coding guidelines.
Exercise
Polish your code.
Refactor your code to respect the coding guidelines. Don’t forget to respect the module structure, the variable names, the method name convention, the model attribute order and the xml ids.
Additional Info for Odoo Staff¶
Now that you know the basics, here are some more useful pages if you haven’t seen them already:
Our welcome page has extra info about working at Odoo as well as additional tutorials that are both language and Odoo specific.
Once you are ready to start doing tasks, it is important to note that Odoo follows a rebasing workflow instead of merging for your PRs. This cheatsheet describes how to do this flow. If you want to become more of a rebasing master, then this tutorial is extra useful.
Test on the runbot¶
Odoo has its own CI server named runbot. All commits, branches and PR will be tested to avoid regressions or breaking of the stable versions. All the runs that pass the tests are deployed on their own server with demo data.
Exercise
Play with the runbot.
Feel free to go to the runbot website and open the last stable version of Odoo to check out all the available applications and functionalities.