How to change the priority of an existing view Dec 4, 2023 Tips In the post The importance of correctly setting priority on inherited views we have already discussed the importance of the priority field in the inherited views and why it needs to have the right v... Technical Read more
How to handle multiline content with Char, Text, and HTML Fields Nov 20, 2023 Tips In case the content in a Char field needs to be split into multiple lines and represented like that in the view the new line character \n or HTML line break <br> tag are not supported in this ty... Technical Read more
The importance of correctly setting priority on inherited views Oct 30, 2023 Tips The sequence of loading the views in Odoo is critical in the inheritance mechanism. The changes in the views are always applied following their order by priority and ID . This means the views with ... Technical Read more
What is TransientModel in Odoo Oct 16, 2023 Tips TransientModel is a model super-class that stores data in the database temporarily and it is automatically cleaned up on a defined period of time. The scheduled action to clean up the database, in... Technical Read more
How to hide Odoo Information Page from a website Sep 18, 2023 Tips Every website developed with Odoo comes by default with a publicly available page that lists all installed addons in the system. Here are two methods how to hide this page: 1. Deactivating the Templat... Read more
How to create a new QWeb template using as a base existing one Sep 4, 2023 Tips When creating a new QWeb template in Odoo that is very similar to an existing one, which still needs to be left unchanged, there is no need to rewrite the whole code from the existing template. Instea... Read more
How to generate configuration file in Odoo May 18, 2023 Tips After installing a new instance of Odoo, in most of the cases would be needed to generate a new configuration file. That can be done with the following command line: python odoo/odoo-bin -c path-to-co... Technical Read more
Not loaded CSS in the QWeb Reports May 18, 2023 Tips In case the CSS is not loaded in the QWeb Reports, few System Parameters that may solve the issue are following: The system parameter web.base.url need to have as value the system's domain, in ... Technical Read more
How to upgrade all installed modules in Odoo May 18, 2023 Tips In case we need to upgrade all installed modules in an Odoo instance, that can be done directly from the command line using the following command for Linux systems: python odoo/odoo-bin -c < path-to-c... Technical Read more
How to check if a user belongs to a particular group May 17, 2023 Tips The method has_group in the model res.users is helpful for checking if a user belongs to a specific group. For example, if we need to check if a user is a salesman in the system, the code should l... Technical Read more
How to index a field in Odoo May 16, 2023 Tips It is a good practice to create an index for the most searchable fields in the model. In that way, the database search performance can be significantly increased. However, should be careful not to add... Technical Read more
How to create a model in Odoo without a table in the database May 16, 2023 Tips There are cases when is needed to have a model that will not be represented by a table in the database. By default, Odoo creates a table for every Model and TransientModel , but, there is option ... Technical Read more