← Back to team overview

openerp-india team mailing list archive

[Bug 1021282] Re: crm : Error during evaluation of context.

 

landed on 7071.1.1

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1021282

Title:
  crm : Error during evaluation of context.

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  Install crm,

  Create a lead and click on the following button:

  1)Meeting(on form view itself):

  It gives the following traceback:

  Traceback (most recent call last):
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/http.py", line 180, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/controllers/main.py", line 650, in eval_domain_and_context
      common.nonliterals.CompoundDomain(*(domains or [])))
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/controllers/main.py", line 721, in eval_context_and_domain
      e_domain = session.eval_domain(domain or [])
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/session.py", line 218, in eval_domain
      return cdomain.evaluate(context or {})
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/nonliterals.py", line 214, in evaluate
      final_domain.extend(domain.evaluate(ctx))
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/nonliterals.py", line 214, in evaluate
      final_domain.extend(domain.evaluate(ctx))
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/nonliterals.py", line 128, in evaluate
      raise ValueError('Error during evaluation of this domain: "%s", message: "%s"' % (self.get_domain_string(), e.message))
  ValueError: Error during evaluation of this domain: "[('opportunity_id', '=', active_id)]", message: "name 'active_id' is not defined"

  2)Phone Calls(on form view itself):

  It gives the following traceback:

  Traceback (most recent call last):
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/http.py", line 180, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/controllers/main.py", line 650, in eval_domain_and_context
      common.nonliterals.CompoundDomain(*(domains or [])))
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/controllers/main.py", line 719, in eval_context_and_domain
      e_context = session.eval_context(context)
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/session.py", line 196, in eval_context
      return ccontext.evaluate(ctx)
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/nonliterals.py", line 255, in evaluate
      final_context.update(context_to_eval.evaluate(ctx))
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/nonliterals.py", line 255, in evaluate
      final_context.update(context_to_eval.evaluate(ctx))
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/nonliterals.py", line 255, in evaluate
      final_context.update(context_to_eval.evaluate(ctx))
    File "/home/mdi/openerp/rdtools/web/trunk/addons/web/common/nonliterals.py", line 175, in evaluate
      raise ValueError('Error during evaluation of this context: "%s", message: "%s"' % (self.get_context_string(), e.message))
  ValueError: Error during evaluation of this context: "{'default_duration': 1.0 ,'default_opportunity_id': active_id,'default_partner_phone':phone}", message: "name 'phone' is not defined"

  Thanks,
  Divyesh

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1021282/+subscriptions


References