bugGNU Health - Bugs: bug #43059, Error creating specialties on...

 
 

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

bug #43059: Error creating specialties on institutions

Submitter:  oscar alvarez <oscar_alv>
Submitted:  Sat 23 Aug 2014 10:32:07 PM UTC
   
 
Category:  Functionality Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  2.6.0
Module:  gnuhealth.institution.specialties Component:  None

Tue 26 Aug 2014 06:08:51 PM UTC, comment #3: 
Luis Falcon <meanmicio>
Group administrator
Sun 24 Aug 2014 04:36:13 PM UTC, comment #2: 

I have just installed module health not all modules GNU in tryton 3.2, because I testing just this module, for reproduce it I think is best just install this module about tryton base modules,

note: There is not instituttions created, this first Institution, and there is not specialties by institutions

So for reproduce it, enter to

Health >> Institutions >> New

fill the fields and create new line for specialties,  when a specialty is select the error raise.



oscar alvarez <oscar_alv>
Sun 24 Aug 2014 09:56:38 AM UTC, comment #1: 

Hi Oscar !

Trying to reproduce the error.

Can you please specify the steps to reproduce it ?

Thanks !

Luis Falcon <meanmicio>
Group administrator
Sat 23 Aug 2014 10:32:07 PM UTC, original submission:  

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 158, in dispatch
    result = rpc.result(meth(c_args, *c_kwargs))
  File "/trytond/model/modelsql.py", line 656, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 87, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 87, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 81, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 81, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/modules/health/health.py", line 806, in get_rec_name
    return self.specialty.name
AttributeError: 'NoneType' object has no attribute 'name'

oscar alvarez <oscar_alv>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #31942:  patch_43059.diff added by oscar_alv (325B - text/x-patch - Patch for fix get_rec_name on HealthInstitutionSpecialties)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by oscar_alv (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-26 meanmicio StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-08-26 meanmicio StatusNone Confirmed
        Assigned toNone meanmicio
        ReleaseNone 2.6.0
    2014-08-24 oscar_alv Attached File- Added patch_43059.diff, #31942

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code