From 3dbfede4233011b16ed3736edd4026bc3029be28 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_department/models/res_partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partner_contact_department/models/res_partner.py b/partner_contact_department/models/res_partner.py index 0bf3eb793..5efdd40c0 100644 --- a/partner_contact_department/models/res_partner.py +++ b/partner_contact_department/models/res_partner.py @@ -29,7 +29,7 @@ class ResPartnerDepartment(models.Model): parent_id = fields.Many2one( "res.partner.department", "Parent department", - ondelete='cascade') + ondelete='restrict') child_ids = fields.One2many( "res.partner.department", "parent_id",