diff --git a/partner_contact_job_position/models/res_partner.py b/partner_contact_job_position/models/res_partner.py index abb6863fa..4042bf730 100644 --- a/partner_contact_job_position/models/res_partner.py +++ b/partner_contact_job_position/models/res_partner.py @@ -28,7 +28,7 @@ class ResPartnerJobPosition(models.Model): name = fields.Char(required=True, translate=True) parent_id = fields.Many2one( "res.partner.job_position", - "Parent") + "Parent", ondelete='cascade') child_ids = fields.One2many( "res.partner.job_position", "parent_id",