small refactorings

This commit is contained in:
Youssef Elouahby 2018-10-26 13:20:04 +01:00
parent 8fa32e185e
commit 96b844b6af

View File

@ -179,7 +179,7 @@ class GolemFamily(models.Model):
if street_id: if street_id:
family.area_id = street_id.area_id family.area_id = street_id.area_id
member.area_from_street = True family.area_from_street = True
@api.constrains('street') @api.constrains('street')
def save_street(self): def save_street(self):
""" Save street if no exist """ """ Save street if no exist """