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

 
 

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

bug #43059: Error creating specialties on institutions

Submitted by:  oscar alvarez <oscar_alv>
Submitted on:  Sat Aug 23 22:32:07 2014  
 
Category: FunctionalitySeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Luis Falcon <meanmicio>
Open/Closed: ClosedRelease: 2.6.0
Module: gnuhealth.institution.specialties

Tue Aug 26 18:08:51 2014, comment #3:

http://hg.savannah.gnu.org/hgweb/health/rev/8f1e55df2c2a

Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
Sun Aug 24 16:36:13 2014, 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 Aug 24 09:56:38 2014, comment #1:

Hi Oscar !

Trying to reproduce the error.

Can you please specify the steps to reproduce it ?

Thanks !

Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
Sat Aug 23 22:32:07 2014, 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>

 

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
  • -unavailable- added by meanmicio (Posted a comment)
  • -unavailable- added by oscar_alv (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Aug 26 18:08:51 2014meanmicioStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue Aug 26 10:30:40 2014meanmicioStatusNone=>Confirmed
      Assigned toNone=>meanmicio
      ReleaseNone=>2.6.0
    Sun Aug 24 04:54:19 2014oscar_alvAttached File-=>Added patch_43059.diff, #31942

    Back to the top


    Powered by Savane 3.1-cleanup1