Add ondelete option to parent_id, runbot fails to lack of attribute.
@ -28,7 +28,8 @@ class ResPartnerDepartment(models.Model):
name = fields.Char(required=True, translate=True)
parent_id = fields.Many2one(
"res.partner.department",
"Parent department")
"Parent department",
ondelete='restrict')
child_ids = fields.One2many(
"parent_id",
@ -28,7 +28,7 @@ class ResPartnerJobPosition(models.Model):
"res.partner.job_position",
"Parent")
"Parent", ondelete='restrict')