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

Submitter:  Luis Falcon <meanmicio>
Submitted:  Sun 05 May 2013 04:30:38 PM UTC
   
 
Category:  Tryton Severity:  4 - Important
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  1.9.0
Module:  health Component:  None

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

Fixed in changeset changeset 748:112218c46cfa

Luis Falcon <meanmicio>
Group administrator
Sun 05 May 2013 06:39:29 PM UTC, comment #1: 

It happens when the medication form is not filled.

Luis Falcon <meanmicio>
Group administrator
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>
Group administrator

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-05 meanmicio StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-05-05 meanmicio StatusNone Confirmed
        Assigned toNone meanmicio
    2013-05-05 meanmicio ReleaseNone 1.9.0

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code