bugGNU Health - Bugs: bug #38654, Ordering a lab test fails if no...

 
 

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

bug #38654: Ordering a lab test fails if no doctor assigned

Submitted by:  Waleed Hamra <hamra>
Submitted on:  Wed 03 Apr 2013 12:09:24 PM UTC  
 
Category: FunctionalitySeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Sebastián Marró <smarro>
Open/Closed: ClosedRelease: None
Module: laboratory

Thu 04 Apr 2013 06:40:27 PM UTC, comment #1:

changeset 721:b3cf97bcaf33

Sebastián Marró <smarro>In charge of this item.
Wed 03 Apr 2013 12:09:24 PM UTC, original submission:

If i create a lab request, but don't specify a doctor, then when clicking on the requestion action->create lab test, it fails.

Traceback (most recent call last):
File "/site-packages/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/site-packages/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/site-packages/trytond/protocols/dispatcher.py", line 154, in dispatch
result = rpc.result(meth(args, *kwargs))
File "/site-packages/trytond/wizard/wizard.py", line 259, in execute
return wizard._execute(state_name)
File "/site-packages/trytond/wizard/wizard.py", line 290, in _execute
result = self._execute(transition())
File "/site-packages/trytond/modules/health_lab/wizard/wizard_create_lab_test.py", line 64, in transition_create_lab_test
test_report_data['requestor'] = lab_test_order.doctor_id.id
AttributeError: 'NoneType' object has no attribute 'id'

Waleed Hamra <hamra>

 

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 smarro (Updated the item)
  • -unavailable- added by hamra (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 04 Apr 2013 06:40:27 PM UTCsmarroStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 04 Apr 2013 06:30:36 PM UTCsmarroStatusNone=>Confirmed
      Assigned toNone=>smarro

    Back to the top


    Powered by Savane 3.1-cleanup1