From 005673a179c076384fdf18f26e41affea4a40d60 Mon Sep 17 00:00:00 2001 From: Fekete Mihai Date: Mon, 25 Jan 2016 02:22:26 -0800 Subject: [PATCH] Update ondelete to restrict. --- partner_contact_job_position/models/res_partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",