health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health] Migrated DB lab results issues


From: Maah moussa
Subject: [Health] Migrated DB lab results issues
Date: Tue, 10 Oct 2017 10:11:20 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Hello Sir,

I just noticed some of the old lab results on the trial migrated DB from GNU health 3.0 to GNU health 3.2 don't open not showing the results.

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 39, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 106, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 163, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelsql.py", line 773, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 91, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 91, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 85, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 85, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
File "/trytond/modules/health_crypto_lab/health_crypto_lab.py", line 216, in check_digest
    serial_doc=self.get_serial(self)
File "/trytond/modules/health_crypto_lab/health_crypto_lab.py", line 191, in get_serial
    'HP': str(document.requestor.rec_name),
AttributeError: 'NoneType' object has no attribute 'rec_name'

Also newly created lab result have to have lower and upper values, otherwise shows the following message

raceback (most recent call last):
  File "/trytond/wsgi.py", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 39, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 106, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 168, in _dispatch
    result = rpc.result(meth(inst, *c_args, **c_kwargs))
  File "/trytond/model/modelview.py", line 681, in on_change_with
    changes[fieldname] = getattr(self, method_name)()
  File "/trytond/model/fields/field.py", line 101, in wrapper
    return func(self, *args, **kwargs)
File "/trytond/modules/health_lab/health_lab.py", line 227, in on_change_with_warning
    if (self.result < self.lower_limit or self.result > self.upper_limit):
TypeError: unorderable types: float() < NoneType()

Thanks a lot for the help.

kind regards,

Maah Moussa




reply via email to

[Prev in Thread] Current Thread [Next in Thread]