bugGNU Health - Bugs: bug #38897, Development : Error when adding a...

 
 

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

bug #38897: Development : Error when adding a prescription line

Submitted by:  Luis Falcon <meanmicio>
Submitted on:  Sun 05 May 2013 04:30:38 PM UTC  
 
Category: TrytonSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Luis Falcon <meanmicio>
Open/Closed: ClosedRelease: 1.9.0
Module: health

Sun 05 May 2013 06:57:23 PM UTC, comment #2:

Fixed in changeset changeset 748:112218c46cfa

Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
Sun 05 May 2013 06:39:29 PM UTC, comment #1:

It happens when the medication form is not filled.

Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
Sun 05 May 2013 04:30:38 PM UTC, original submission:

AttributeError: 'NoneType' object has no attribute 'id

ERROR:tryton.common.common:Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 158, in dispatch
result = rpc.result(meth(args, *kwargs))
File "/trytond/model/modelsql.py", line 550, in read
res2 = cls._fields[field].get(ids, cls, field_list, values=res)
File "/trytond/model/fields/function.py", line 90, in get
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 90, in <genexpr>
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 84, in call
return dict((r.id, method(r, name)) for r in records)
File "/trytond/model/fields/function.py", line 84, in <genexpr>
return dict((r.id, method(r, name)) for r in records)
File "/trytond/modules/health/health.py", line 1922, in get_form
return self.template.form.id
AttributeError: 'NoneType' object has no attribute 'id'

Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 May 2013 06:57:23 PM UTCmeanmicioStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sun 05 May 2013 06:39:29 PM UTCmeanmicioStatusNone=>Confirmed
      Assigned toNone=>meanmicio
    Sun 05 May 2013 04:30:56 PM UTCmeanmicioReleaseNone=>1.9.0

    Back to the top


    Powered by Savane 3.1-cleanup1