The importance of correctly setting priority on inherited views 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 Oct 30, 2023 Tips
What is TransientModel in Odoo 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 Oct 16, 2023 Tips
How to hide Odoo Information Page from a website 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... Functional Sep 18, 2023 Tips
How to create a new QWeb template using as a base existing one 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... Technical Sep 4, 2023 Tips
How to generate configuration file in Odoo 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 May 18, 2023 Tips
Not loaded CSS in the QWeb Reports 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 May 18, 2023 Tips
How to upgrade all installed modules in Odoo 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 May 18, 2023 Tips
How to check if a user belongs to a particular group 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 May 17, 2023 Tips
How to index a field in Odoo 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 May 16, 2023 Tips
How to create a model in Odoo without a table in the database 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 May 16, 2023 Tips
How to show the total of a numeric column in a list view In case the total of a numeric column needs to be shown at the bottom of a list view, would be needed to include the attribute sum in the field’s XML definition. For example, if amount field needs t... Technical Apr 8, 2023 Tips