Update res_partner.py
This commit is contained in:
parent
9c16984778
commit
ca5e49ffda
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue