Browse Source

Add ondelete option to parent_id, runbot fails to lack of attribute.

pull/692/merge
Fekete Mihai 9 years ago
committed by OCA-git-bot
parent
commit
4789e4e6ef
  1. 2
      partner_contact_job_position/models/res_partner.py

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

Loading…
Cancel
Save