bemade_sports_clinic: fixed patient._compute_age function
This commit is contained in:
parent
017f95d15f
commit
0cc8f07763
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class Patient(models.Model):
|
|||
if not rec.date_of_birth:
|
||||
rec.age = False
|
||||
else:
|
||||
rec.age = relativedelta(date.today() - rec.date_of_birth).years
|
||||
rec.age = relativedelta(date.today(), rec.date_of_birth).years
|
||||
|
||||
@api.depends('injury_ids.predicted_return_date')
|
||||
def _compute_predicted_return_date(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue