For Developers: How to become an Odoo Perfectionist?

Do it in the right way ;)

ProjoMania, Mohamed Magdy Mahmoud

Introduction

Odoo became one of the most popular systems as it as a good integrated business solution which can fit in many industries.

In the demand and supply markets, Odoo is highly demanded system as it can be considered the best solution for many sectors which can be obtained with a reasonable cost for the customer. It is the Economic Crisis especially in the middle east which should result in more demand on Odoo to save the cost of hiring more employees and getting instant accurate reports.

Being under the pressure of projects, tasks and customers you will lose your focus which means producing a low quality work, that's why I am writing this article as a reference for those who wants to keep focus and who want to be an Odoo Perfectionist who want to keep an eye on the timeline of the projects.

This seems great for Odoo teams but it is not as good as it looks.

Being under the pressure of projects, tasks and customers you will lose your focus which means producing a low quality work, that's why I am writing this article as a reference for those who wants to keep focus and who want to be an Odoo Perfectionist who want to keep an eye on the timeline of the projects.

It is about how to write a high quality code and to make your customers satisfied with what you did for them.

Why I did write this article?

When I decided that I will never work for a company again, I got many freelance offers that made me under pressure all the time and I found that I am losing my focus (Still feeling lost).

I was wondering how can I help myself to focus on the productivity and the quality of the code with different projects, the answer to have Odoo PyCharm Templates that helped me a lot to write a clean code in almost no time. But it was not enough as it is not how to write a clean code, it is about how to write a high quality code and to make your customers satisfied with what you did for them.

You may be someone who is seeking for a job, then this article is not for you. You can find a good job if you were able to pass the Odoo Interviews.

How to be a perfectionist?

Well, Following OCA Guidelines or Odoo Guidelines will help you a lot to write good modules which should be clean enough to the other developers to proceed your work in case of your absence.

Localization

But adding the i18n file for the translation is not common as most of developers are focusing in writing the code. They almost do not care about the language of the customer, believe me it is not make him satisfied.

Unit Testing

Unit testing aims to write tests to help you to ensure that you're doing the right thing with your code.

Demo Data

It should take 5 minutes to add demo data file that will help your customer to test the module and will help you for sure to discover the bugs as well as the unit testing.

Git Commits

Git commits will help you and your team to follow the progress of the development and to understand the way you want through the development process.

Code Comments

Most of developers will forget why did they wrote some lines of code in a few hours, but what if you have to fix some issues or add some features to some existing code that you wrote before ?!!

Well, I found a good solution for this boring procedure ;). All you need is to think about your code in the same file of the code. In other words, try to tell the story of the code you are going to write in the .py file, then under each line of the story write the python version of this line. By the end of the file, you'll get a well-commented (Documented) code. You will be happy with the results ;)

This will not only help you to get a satisfied customer but also will save a lot of time for you. Also, it will be a great way to get a good job when your new employer ask for a sample of your work. He will be happy to see your modules well-organized and to see you caring about the details.

Leave a comment

You must be logged in to post a comment.