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-co... 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
How to show the total of a numeric column in a tree view Apr 8, 2023 Tips In order to show the total of a numeric column in a tree view it would need to use the attribute “ sum “. An example is shown below: <field name="amount" sum="Total Amount"/> The string that is assign... Technical Read more