← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704882] Re: Error evaluating parent.type in invoice lines

 

Hello,

I agree with you but this traceback arises due to try catch block used in 'expr_eval' method.
This is occurs due to unevaluated context  passed in view at time of opening the form so in that time parent is not available till the record has been saved.

Hope this is enough for you.

Thanks.

** Changed in: openobject-addons
       Status: New => Won't Fix

-- 
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/704882

Title:
  Error evaluating parent.type in invoice lines

Status in OpenERP Modules (addons):
  Won't Fix

Bug description:
  version 6.0-dev on  Ubuntu10.10 64 bits

  This error appears when I save the invoice line into the invoice.
  Apparently the invoice works correctly but sends this messages after
  save and close the invoice line window.

  [19/Jan/2011:13:24:31] expr_eval Error while parsing u"{'type':parent.type}"
  Traceback (most recent call last):
    File "/home/amosoviedo/openerp6/openobject-client-web/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:13:24:31] expr_eval Error while parsing u"{'type':parent.type}"
  Traceback (most recent call last):
    File "/home/amosoviedo/openerp6/openobject-client-web/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