Add single_parent field to model

This commit is contained in:
Youssef Elouahby 2018-09-28 02:21:38 +01:00
parent 459972669c
commit 66b5057709
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ class GolemFamily(models.Model):
note = fields.Text()
count = fields.Integer(compute='_compute_count', store=True)
single_parent = fields.Boolean()
@api.depends('member_ids')
def _compute_count(self):
for family in self: