Update res_partner.py

This commit is contained in:
zainab2097 2024-09-29 16:00:20 +03:00 committed by GitHub
parent 9c16984778
commit ca5e49ffda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Partner(models.Model):
gender = fields.Selection(
selection=[("male", "Male"), ("female", "Female")], default="male",string='Gender'
)
@api.depends('birth_date')
def _compute_age(self):
for rec in self:
rec.age = 0