How to Make Sure One2Many Records Are Deleted When the Parent Record Deleted in Odoo 17 – CBMS Odoo ERP

In Odoo 17, to ensure that One2many records are deleted when the parent record is deleted, you need to configure the One2many field with the proper ondelete attribute. This attribute controls the behavior of related records when the parent record is deleted. Set ondelete=’cascade’ on the One2many field to automatically delete related records when the […]

How to Define Compute Fields & Compute Functions in Odoo 17 | Odoo 17 Development Tutorials – CBMS Odoo ERP

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 […]