How to Store Different Values in a Field per Company In multi-company mode, there are cases when one field would need to store different values for each company. An example of such fields are some of the accounting settings per product, such as Income A... Odoo 17 Odoo 18 Technical May 7, 2024
Optimize "create" Overrides by Using the Decorator "model_create_multi" 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... Technical Mar 26, 2024 Tips
How to Add a Background Color on Tags Using Many2many_tags Widget When using many2many_tags widget, it is possible to define a background color for each of the tag values. For that to work the following steps need to be done: The related model needs to have an Int... Odoo 17 Odoo 18 Technical Mar 18, 2024
How to Change the Text Color for a Column in a List View 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... Odoo 17 Technical Mar 11, 2024 Tips
How to Format Dates in Email Templates 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... Functional Technical Feb 19, 2024 Tips
How to Customize Field Definitions by Group in Odoo View 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... Odoo 17 Odoo 18 Technical Feb 12, 2024 Tips
How to Hide a Column in a List View 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 ... Odoo 17 Odoo 18 Technical Jan 22, 2024 Tips
Methods for Searching and Filtering Records in Odoo In Odoo can be found multiple different methods for filtering and searching records. Each of them is designed with their own uniqueness which makes it more useful in certain cases than others, even th... Odoo 17 Odoo 18 Technical Jan 1, 2024
How to Update Many2many and One2many Fields in Odoo Many2many and One2many fields in Odoo require a specific syntax for manipulating related data. The instructions mainly consist of 3 elements added in a tuple, where each of the elements has a special ... Odoo 17 Odoo 18 Technical Dec 11, 2023
How to Change the Priority of an Existing View 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... Odoo 17 Odoo 18 Technical Dec 4, 2023 Tips
How to Handle Multiline Content with Char, Text, and HTML Fields 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... Odoo 17 Odoo 18 Technical Nov 20, 2023 Tips
The Technical Menu in Odoo The technical menu can be found on the settings page and it is visible only in developer mode. The menu contains more than 16 sections, some of which are visible only if a particular application is in... Functional Odoo 17 Odoo 18 Technical Nov 13, 2023