forked from Yaltik/golem
/
This commit is contained in:
parent
e5cf4ad9d4
commit
57c206039e
@ -102,8 +102,9 @@ class GolemFamily(models.Model):
|
|||||||
def onchange_member(self):
|
def onchange_member(self):
|
||||||
""" Sets as member address if there was no precedence """
|
""" Sets as member address if there was no precedence """
|
||||||
for family in self:
|
for family in self:
|
||||||
if not any ({'family.street': True}):
|
if not any((family.street, family.street2)):
|
||||||
self.update({'family.street': family.member_ids.street})
|
family.update({'street': family.member_ids[0].street,
|
||||||
|
'street2': family.member_ids[0].street2})
|
||||||
|
|
||||||
class GolemFamilyRole(models.Model):
|
class GolemFamilyRole(models.Model):
|
||||||
""" GOLEM Family Role """
|
""" GOLEM Family Role """
|
||||||
|
Loading…
Reference in New Issue
Block a user