You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR
ERROR: test_search_age (odoo.addons.medical.tests.test_medical_patient.TestMedicalPatient)
` When patients are searched by age, it should return patients with the corresponding birth dates
Traceback (most recent call last):
` File "/home/travis/build/LasLabs/vertical-medical/medical/tests/test_medical_patient.py", line 158, in test_search_age
` [('age', '=', years)]
` File "/home/travis/odoo-10.0/odoo/models.py", line 1518, in search
` res = self._search(args, offset=offset, limit=limit, order=order, count=count)
` File "/home/travis/odoo-10.0/odoo/models.py", line 4224, in _search
` query = self._where_calc(args)
` File "/home/travis/odoo-10.0/odoo/models.py", line 4023, in _where_calc
` e = expression.expression(domain, self)
` File "/home/travis/odoo-10.0/odoo/osv/expression.py", line 643, in __init__
` self.parse()
` File "/home/travis/odoo-10.0/odoo/osv/expression.py", line 896, in parse
` domain = field.determine_domain(model, operator, right)
` File "/home/travis/odoo-10.0/odoo/fields.py", line 1007, in determine_domain
` return getattr(records, self.search)(operator, value)
` File "/home/travis/build/LasLabs/vertical-medical/medical/models/medical_patient.py", line 124, in _search_age
` day=current_day - 1
` ValueError: day is out of range for month
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: