diff --git a/partner_contact_job_position/models/res_partner.py b/partner_contact_job_position/models/res_partner.py index 4042bf730..19522ec01 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", ondelete='cascade') + "Parent", ondelete='restrict') child_ids = fields.One2many( "res.partner.job_position", "parent_id",