bugGNU Health - Bugs: bug #37652, TypeError: can't compare...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #37652: TypeError: can't compare datetime.date to NoneType

Submitted by:  Sebastián Marró <smarro>
Submitted on:  Tue 30 Oct 2012 04:00:54 AM UTC  
 
Category: Demo environmentSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Sebastián Marró <smarro>
Open/Closed: ClosedRelease: None
Module: demo

Tue 30 Oct 2012 04:07:00 AM UTC, comment #1:

Fixed in changeset 426:c18c26665d23

Sebastián Marró <smarro>In charge of this item.
Tue 30 Oct 2012 04:00:54 AM UTC, original submission:

Running the demo script:

2012-10-26 09:01:30,317 INFO health_profile
Traceback (most recent call last):
File "health_demo_server.py", line 276, in <module>
LoadBetzFamilyInfo()
File "health_demo_server.py", line 139, in LoadBetzFamilyInfo
patient_disease.save()
File "/home/medicare/.local/lib/python2.6/site-packages/proteus/__init__.py", line 604, in save
self.__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 create
self._validate([id_new])
File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelsql.py", line 2210, in _validate
super(ModelSQL, self)._validate(ids)
File "/home/medicare/.local/lib/python2.6/site-packages/trytond/model/modelstorage.py", line 978, in _validate
if 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_period
if (disease_data.healed_date < disease_data.diagnosed_date):
TypeError: can't compare datetime.date to NoneType

Sebastián Marró <smarro>In charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by smarro (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 30 Oct 2012 04:07:00 AM UTCsmarroStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1