forked from Yaltik/golem
[TMP]Add test on zip and city
This commit is contained in:
parent
1a57c993e1
commit
5714cab5ad
@ -102,7 +102,8 @@ 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 family.member_ids and not any((family.street, family.street2)):
|
if family.member_ids and not any((family.street, family.street2,\
|
||||||
|
family.zip, family.city)):
|
||||||
family.update({'street': family.member_ids[0].street,
|
family.update({'street': family.member_ids[0].street,
|
||||||
'street2': family.member_ids[0].street2,
|
'street2': family.member_ids[0].street2,
|
||||||
'zip': family.member_ids[0].zip,
|
'zip': family.member_ids[0].zip,
|
||||||
|
Loading…
Reference in New Issue
Block a user