|
From: | Sebastián Marró |
Subject: | Re: [Health] Demo Database error: AttributeError: 'int' object has no attribute 'id' |
Date: | Tue, 30 Oct 2012 01:10:22 -0300 |
Hi Sebastián,On 26 October 2012 00:10, Sebastián Marró <address@hidden> wrote:Hi Ronald2012/10/25 ronald munjoma <address@hidden>
Hi Sebastián,The demo database is throwing an error on a Debian clean install running GNU Health 1.6.4, see trace below:2012-10-25 21:56:12,994 INFO CREATE DB: gnuhealth_demoTraceback (most recent call last):File "health_demo_server.py", line 26, in <module>user='admin', password='admin')File "/home/medicare/.local/lib/python2.6/site-packages/proteus/config.py", line 262, in set_trytondlanguage=language, password=password, config_file=config_file)File "/home/medicare/.local/lib/python2.6/site-packages/proteus/config.py", line 220, in __init__], limit=1)[0].idAttributeError: 'int' object has no attribute 'id'address@hidden:~/health/tryton/demo$Can you check that your Proteus version is 2.4?I was using proteus 2.6, I have uninstalled it and installed proteus 2.4. The demo database is now throwing the below errors which should be a result of the fix of bug #37058.2012-10-26 09:01:30,317 INFO health_profileTraceback (most recent call last):File "health_demo_server.py", line 276, in <module>LoadBetzFamilyInfo()File "health_demo_server.py", line 139, in LoadBetzFamilyInfopatient_disease.save()File "/home/medicare/.local/lib/python2.6/site-packages/proteus/__init__.py", line 604, in saveself.__id = self._proxy.create(values, context)File "/home/medicare/.local/lib/python2.6/site-packages/proteus/config.py", line 121, in __call__res = getattr(self._object, self._name)(*args)File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelsql.py", line 423, in createself._validate([id_new])File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelsql.py", line 2210, in _validatesuper(ModelSQL, self)._validate(ids)File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelstorage.py", line 978, in _validateif not getattr(self, field[0])(ids):File "/home/medicare/.local/lib/python2.6/site-packages/trytond/modules/health/health.py", line 1023, in validate_disease_periodif (disease_data.healed_date < disease_data.diagnosed_date):TypeError: can't compare datetime.date to NoneTypeaddress@hidden:~/health/tryton/demo$Regards and thanksRonald MunjomaRegardsRegards and thanksRonald Munjoma--Sebastián Marróthymbr@
Converging Ideas for Emerging Realities
www.thymbra.com
[Prev in Thread] | Current Thread | [Next in Thread] |