Optimize "create" overrides by using the decorator "model_create_multi" Mar 26, 2024 Tips In some cases, there is a need to override the create method in Odoo and add additional logic to it. When overriding this method, the custom logic is triggered on each iteration of creating a new ob... Read more
How to change the text color for a column in a list view Mar 11, 2024 Tips In Odoo it is possible to change the color or text style of a column in a list view using the “decoration” attributes. The syntax for them is decoration-<style> where the style can be one of the fol... Technical Read more
How to make images partially overlap in Odoo website Feb 26, 2024 Tips Starting from Odoo 16 it is possible to make an image partially overlap over another image in the website. In order for that to be possible it is needed the layout for the block to be set to “Grid”. T... Functional Read more
How to format dates in email templates Feb 19, 2024 Tips When using a date field in the email templates it is important to use it with formatting function for the value to be represented in the format set in the language settings. The function for formattin... Read more
How to customize field definitions by group in Odoo view Feb 12, 2024 Tips In everyday business cases, there are a lot of situations where a particular field needs to have different attributes or attribute values based on different access groups. This type of case is possibl... Technical Read more
How to schedule a blog post for publishing in Odoo Jan 29, 2024 Tips Having a “Schedule to Publish” functionality is essential for every blog platform. However, in Odoo this option is less prominent. While there is a clear “Published” toggle, the “Schedule to Publish” ... Functional Read more
How to hide a column in a list view Jan 22, 2024 Tips A column in a list view can be hidden by using the attributes column_invisible or optional . The column_invisible attribute accepts a boolean value as True/False or 1/0 . Since this attribute ... Technical Read more
How to change the priority of an existing view Dec 4, 2023 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 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 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 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 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