odoo technical video
Video Tutorial

How to Ensure One2Many Records Are Deleted with Parent in Odoo 17

OCT 14,2024

Description:

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 parent record is deleted. The ondelete parameter is used in relation fields to define the action taken on related records upon deletion of the parent record.

odoo videos odoo development odoo tutorial

whatsapp_icon
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message