Skip to content
Snippets Groups Projects
Commit cc03c95f authored by Juliana's avatar Juliana
Browse files

check commune existence

parent b794b129
No related branches found
No related tags found
No related merge requests found
......@@ -595,7 +595,7 @@ class AdefpatPorteursProjets(models.Model):
@api.depends('porteur_id')
def _compute_commune(self):
for r in self:
if r.porteur_id:
if r.porteur_id.city:
r.commune = r.porteur_id.city.lower()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment