← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 723080] Re: No active_id defined when computing phase scheduling

 

** Attachment added: "phase.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/723080/+attachment/1866779/+files/phase.ogv

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

Title:
  No active_id defined when computing phase scheduling

Status in OpenERP Modules (addons):
  Invalid

Bug description:
  * Unsure whether this is a bug in the web client, the framework or the
  specific add-on.

  Steps to reproduce:

  1. In the web interface, go to Project -> Scheduling -> Computer Phase Scheduling.
  2. Whether computing a single project or all projects, the same project always gets computed, no matter what is selected.

  Expected result:

  The gantt view for the selected project (or all projects if selected)
  should be displayed.

  Extra info:
  In the server output, I find the following stack trace:

  [22/Feb/2011:12:11:59] expr_eval Error while parsing u"{'record_id': active_id}"
  Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/utils/tools.py", line 53, in expr_eval
      value = eval(string, context)
    File "<string>", line 1, in <module>
  NameError: name 'active_id' is not defined

  When printing context, active_id is not defined at this point. context
  is:

  {'lang': u'en_US', 'tz': False, 'uid': 1, 'relativedelta': <class
  dateutil.relativedelta.relativedelta at 0x8d8bd4c>, 'section_id':
  False, 'datetime': <module 'datetime' from '/usr/lib/python2.6/lib-
  dynload/datetime.so'>, 'current_date': '2011-02-22', 'client': 'web',
  'time': <module 'time' (built-in)>, 'project_id': False,
  'department_id': False}

  Printing context does reveal that there are more calls to expr_eval in
  which active_id is defined - the stack trace might be a coincidence?



References