[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [bug #44108] Error saving Death Certificate when no DoB
From: |
Bruno M. Villasanti |
Subject: |
[Health-dev] [bug #44108] Error saving Death Certificate when no DoB |
Date: |
Wed, 28 Jan 2015 16:51:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?44108>
Summary: Error saving Death Certificate when no DoB
Project: GNU Health
Submitted by: bvillasanti
Submitted on: mié 28 ene 2015 13:51:36 ART
Category: Programming / Tracebacks
Severity: 3 - Normal
Item Group: None
Status: In Progress
Privacy: Public
Assigned to: bvillasanti
Open/Closed: Open
Discussion Lock: Any
Release: None
Module: health
_______________________________________________________
Details:
* Case 1
Attached localhost screenshot [20150128 - 13:10:59.png] creating Death
Certificate of a Party without date of birth.
For testing requires applying previous fix #44105.
* Case 2
Also attached GNU Health Demo Database screenshot [20150128 - 13:14:15.png]
showing the same error after removing the date of birth of a Party with a
Death Certificate associated.
The error occurs when trying to enter to Death Certificates.
--
Error: local variable 'years_months_days' referenced before assignment
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 645, in read
getter_results = field.get(ids, cls, field_list, values=result)
File "/trytond/model/fields/function.py", line 86, in get
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 86, in <genexpr>
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 80, in call
return dict((r.id, method(r, name)) for r in records)
File "/trytond/model/fields/function.py", line 80, in <genexpr>
return dict((r.id, method(r, name)) for r in records)
File "/trytond/modules/health/health.py", line 2219, in get_age_at_death
return years_months_days
UnboundLocalError: local variable 'years_months_days' referenced before
assignment
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: mié 28 ene 2015 13:51:36 ART Name: 20150128 - 13:10:59.png Size:
214kB By: bvillasanti
localhost (20150128 - 13:10:59.png) and GNU Health Demo Database (20150128 -
13:14:15.png)
<http://savannah.gnu.org/bugs/download.php?file_id=32923>
-------------------------------------------------------
Date: mié 28 ene 2015 13:51:36 ART Name: 20150128 - 13:14:15.png Size:
215kB By: bvillasanti
localhost (20150128 - 13:10:59.png) and GNU Health Demo Database (20150128 -
13:14:15.png)
<http://savannah.gnu.org/bugs/download.php?file_id=32924>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44108>
_______________________________________________
Mensaje enviado vía/por Savannah
http://savannah.gnu.org/
- [Health-dev] [bug #44108] Error saving Death Certificate when no DoB,
Bruno M. Villasanti <=