← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704938] Re: Web-client -> eval(x, y) throws nameerror while parsing in tools.py

 

** Attachment added: "SO_line.png"
   https://bugs.launchpad.net/openobject-client-web/+bug/704938/+attachment/1800190/+files/SO_line.png

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/704938

Title:
  Web-client -> eval(x,y) throws nameerror while parsing in tools.py

Status in OpenERP Web Client:
  Incomplete

Bug description:
  For example if you create a Salesorder

  Version 6.0 installation with default data

  To Reproduce error:
  In web-client:

  Sales -> Sales Orders -> New -> Fill in mandatory fields (Customer, Invoice adress,. Ordering Contact and Shipping Adddress)
  Then click Sales Order Lines -> New
  In the Popup click the Magnifying glass for the product field

  It will produce the error.

  The following results from  ./openerp-web.py output:

  [19/Jan/2011:15:41:15] expr_eval Error while parsing u"{'type':parent.type}"
  Traceback (most recent call last):
    File "/home/openerp/openerp6/wwwserver/addons/openerp/utils/tools.py", line 50, in expr_eval
      temp = eval(string, context)
    File "<string>", line 1, in <module>
  NameError: name 'parent' is not defined

  [19/Jan/2011:15:41:15] expr_eval Error while parsing u"{'type':parent.type}"
  Traceback (most recent call last):
    File "/home/openerp/openerp6/wwwserver/addons/openerp/utils/tools.py", line 50, in expr_eval
      temp = eval(string, context)
    File "<string>", line 1, in <module>
  NameError: name 'parent' is not defined





References