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 Update One2many Field From OnChange of Field in Odoo 17 | Odoo 17 Development Tutorials – CBMS Odoo ERP

In Odoo, A One2many field signifies a one-to-many relationship between two models, allowing one model to have multiple related records from another model. The onChange method triggers actions when a field’s value changes, commonly used to update other fields. To update a One2many field from another field’s onChange method in Odoo, declare the One2many field to […]