Browse Source

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

pull/695/head
Fekete Mihai 9 years ago
committed by Nikul-Chaudhary
parent
commit
93238a1959
  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