bugGNU Health - Bugs: bug #42938, Error on Family APGAR selections


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

bug #42938: Error on Family APGAR selections

Submitted by:  Bruno M. Villasanti <bvillasanti>
Submitted on:  Thu Aug 7 22:21:16 2014  
Category: FunctionalitySeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bruno M. Villasanti <bvillasanti>
Open/Closed: ClosedRelease: 2.6.0
Module: health_socioeconomics

Thu Aug 7 22:29:02 2014, comment #1:

Fixed in changeset 1501:635948823670


Bruno M. Villasanti <bvillasanti>In charge of this item.
Thu Aug 7 22:21:16 2014, original submission:

Creating a new patient, selecting Family affection in socioeconomics tab, the following error occurs:

ERROR:tryton.common.common:Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 125, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 158, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 163, in dispatch
result = rpc.result(meth(inst, c_args, *c_kwargs))
File "/trytond/model/model.py", line 406, in on_change_with
changes[fieldname] = getattr(self, method_name)()
File "/trytond/model/fields/field.py", line 86, in wrapper
return func(self, args, *kwargs)
File "/trytond/modules/health_socioeconomics/health_socioeconomics.py", line 206, in on_change_with_fam_apgar_score
fam_apgar_help = int(self.fam_apgar_help)
TypeError: int() argument must be a string or a number, not 'NoneType'

int() argument must be a string or a number, not 'NoneType'

Thanks Luis Miramontes Hercog for pointing it out.

Bruno M. Villasanti <bvillasanti>In charge of this item.


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bvillasanti (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Aug 7 22:29:02 2014bvillasantiStatusIn Progress=>Fixed
    Thu Aug 7 22:25:11 2014bvillasantiReleaseNone=>2.6.0
    Thu Aug 7 22:21:16 2014bvillasantiAttached File-=>Added screenshot-20140807-184706.jpg, #31860

    Back to the top

    Powered by Savane 3.1-cleanup1