From cc5881506d0d2a0d3df8ca4b4610c9c51d76a16d Mon Sep 17 00:00:00 2001 From: Fekete Mihai Date: Sun, 24 Jan 2016 23:34:00 -0800 Subject: [PATCH] Add ondelete option to parent_id, runbot fails to lack of attribute. --- 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 abb6863fa..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") + "Parent", ondelete='restrict') child_ids = fields.One2many( "res.partner.job_position", "parent_id",