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 […]
In Odoo, a tree view (also known as a list view) is used to display records in a tabular format. It is one of the primary views used to present data in Odoo. The editable attribute is used in tree views to allow inline editing of records. This attribute controls whether and how records can […]
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 17, an One2many field represents a one-to-many relationship between two models. It allows you to link multiple records from one model to a single record in another model. Each record in the second model can have multiple related records in the first model. You can empty an One2many field using either the unlink() […]
In Odoo, both lots and serial numbers are used for tracking inventory, but they differ in the level of detail: Lots: Identify a group of identical products. Imagine a batch of shirts or a box of nails. The same lot number applies to all the items within that group. This is useful for managing stock […]