health-dev
[Top][All Lists]
Advanced

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

Re: [Health-dev] Error when saving Evaluation for 2.8 : KeyError: 'count


From: Luis Falcon
Subject: Re: [Health-dev] Error when saving Evaluation for 2.8 : KeyError: 'country.rec_name'
Date: Thu, 26 Feb 2015 07:00:08 -0500

Good morning, Bounmy !

On Thu, 26 Feb 2015 12:57:48 +0700
Bounmy Sihaphom <address@hidden> wrote:

> Hi Luis and community!
> When saving the patient evaluation, Dr. get the error message as
> follow:
> 
> 
> Traceback (most recent call last):
> 
> File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
> 
> response['result'] = dispatch_method(method, params)
> 
> File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
> 
> res = dispatch(*args)
> 
> File "/trytond/protocols/dispatcher.py", line 161, in dispatch
> 
> result = rpc.result(meth(*c_args, **c_kwargs))
> 
> File "/trytond/model/modelsql.py", line 416, in create
> 
> values.update(cls._clean_defaults(defaults))
> 
> File "/trytond/model/modelstorage.py", line 1123, in _clean_defaults
> 
> vals2 = obj._clean_defaults(defaults2)
> 
> File "/trytond/model/modelstorage.py", line 1113, in _clean_defaults
> 
> fld_def = cls._fields[field]
> 
> KeyError: 'country.rec_name'
> 
> When I try on Demo Server, I got different message as follow:
> 
> Traceback (most recent call last):
> 
> File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
> 
> response['result'] = dispatch_method(method, params)
> 
> File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
> 
> res = dispatch(*args)
> 
> File "/trytond/protocols/dispatcher.py", line 161, in dispatch
> 
> result = rpc.result(meth(*c_args, **c_kwargs))
> 
> File "/trytond/model/modelsql.py", line 492, in create
> 
> cls._validate(sub_records)
> 
> File "/trytond/model/modelstorage.py", line 1106, in _validate
> 
> cls.validate(records)
> 
> File "/trytond/modules/health/health.py", line 4390, in validate
> 
> evaluation.validate_evaluation_period()
> 
> File "/trytond/modules/health/health.py", line 4403, in
> validate_evaluation_period
> 
> self.evaluation_start, str(languages[0].date)),
> 
> IndexError: list index out of range
> 
> Is it only me? or someone has similar experience?
>
Thanks for reporting ! 

I haven't experienced the error, although it seems related to the
configuration of the login language. I tried both English and Spanish
and it worked ok.

Are you using Lao language ? Try the same process scenario in English
and let me know what is the outcome.


Best,
Luis

> Thanks for your help!
> 
> 
> Best Regards;
> 
> Bounmy Sihaphom
> mail. address@hidden




reply via email to

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