GNU Health - Bugs: bug #44110, Error saving Birth Certificate
You are not allowed to post comments on this tracker with your current authentication level.
bug #44110: Error saving Birth Certificate
Submitter: | Bruno M. Villasanti <bvillasanti> | ||
Submitted: | Wed 28 Jan 2015 08:08:04 PM UTC | ||
Category: | Programming / Tracebacks | Severity: | 5 - Blocker |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | bvillasanti |
Open/Closed: | Closed | Release: | 2.7.0 |
Module: | health, health_crypto | Component: | None |
Wed 28 Jan 2015 08:21:46 PM UTC, comment #1: |
Bruno M. Villasanti <bvillasanti> |
Wed 28 Jan 2015 08:08:04 PM UTC, original submission:
Tested in GNU Health Demo Database.
|
Bruno M. Villasanti <bvillasanti> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2015-01-28 | bvillasanti | Status | In Progress | Fixed | |
Open/Closed | Open | Closed | |||
Release | None | 2.7.0 | |||
2015-01-28 | bvillasanti | Attached File | - | Added 20150128 - 14:19:58.png, #32926 |
Powered by Savane 3.13-bb6a.
Corresponding source code
Fixed on changeset 1809:535c832d46fe
Subsequent errors found and fixed in the process [1][2].
--
[1] Error: 'NoneType' object has no attribute 'rec_name'
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_crypto/health_crypto.py", line 285, in check_digest
serial_doc=self.get_serial(self)
File "/trytond/modules/health_crypto/health_crypto.py", line 263, in get_serial
'Mother': unicode(certificate.mother.rec_name) or '',
AttributeError: 'NoneType' object has no attribute 'rec_name'
--
[2] Error: 'NoneType' object has no attribute 'rec_name'
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_crypto/health_crypto.py", line 291, in check_digest
serial_doc=self.get_serial(self)
File "/trytond/modules/health_crypto/health_crypto.py", line 270, in get_serial
'Father': unicode(certificate.father.rec_name) or '',
AttributeError: 'NoneType' object has no attribute 'rec_name'