In this video, we will explore how to create and use compute fields and compute functions in Odoo 17. Compute fields are special fields whose values are computed dynamically based on other fields or data in the system. This feature allows you to create fields that automatically update their values when related fields change, ensuring […]
In Odoo, “Prevent Sale of Zero Priced Products” is a feature specifically designed for the website module (from version 16 onwards). It acts as a safeguard to prevent customers from purchasing products listed with a price of zero. Here’s a breakdown of its functionality: Blocks Zero-Priced Purchases: When enabled, this feature stops customers from adding […]
In Odoo 17, the ability to set default values for fields dynamically using functions is a powerful feature that enhances flexibility and customization options within the system. Unlike static default values, which remain constant regardless of circumstances, dynamic defaults enable developers to define default values based on specific conditions or calculations.To implement dynamic default values, […]
In Odoo 17, SQL constraints are used to enforce data integrity rules at the database level. These constraints ensure that the data stored in the database meets certain criteria or conditions. SQL constraints are defined within the Python models of an Odoo module and are then translated into corresponding SQL constraints when the module is […]
In Odoo 17, to make a field storable, set store=True when defining it. By default, fields are storable unless set to store=False. Storable fields ensure data persistence across sessions and server restarts, crucial for maintaining data integrity and retrieval. However, computed or related fields are not stored by default (store=False) unless explicitly specified as store=True. […]
Themes play a significant role in the visual presentation and user experience. They define the layout, style, and overall appearance of the website, including aspects such as colors, fonts, and page structure. Installing a theme in Odoo involves adding a new theme module to your Odoo instance. You can find themes in the Odoo App […]
This video covers the case of how we can pass the data to the browser, which can be done with the help of controllers. Controllers serve as intermediaries between the front-end of a web application and its back-end. They interpret requests made by the browser and determine how to respond, often by retrieving data from a […]