Browse Source

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

14.0
Fekete Mihai 9 years ago
committed by newtratip
parent
commit
4f4ffd3032
  1. 3
      partner_contact_department/models/res_partner.py

3
partner_contact_department/models/res_partner.py

@ -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(
"res.partner.department",
"parent_id",

Loading…
Cancel
Save