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",