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:  Tryton Severity:  4 - Important
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Luis Falcon <meanmicio>
Open/Closed:  Closed Release:  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
  • -email is unavailable- added by meanmicio (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.7