← Back to team overview

credativ team mailing list archive

[Bug 912676] Re: cannot open supplier invoice (O2M ?)

 

Here is a patch that corrects this problem.

** Patch added: "tmp.diff"
   https://bugs.launchpad.net/openobject-addons/+bug/912676/+attachment/2659889/+files/tmp.diff

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

Title:
  cannot open supplier invoice (O2M ?)

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  trunk, tested in web only, chrome,

  bug in supplier invoice, cannot open it after creating it.

  
  Client Traceback (most recent call last):
    File "/home/aline/source/web/trunk/addons/web/common/http.py", line 175, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 770, in get
      return self.do_get(req, model, ids, fields)
    File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 792, in do_get
      records = Model.read(ids, fields, req.session.eval_context(req.context))
    File "/home/aline/source/web/trunk/addons/web/common/session.py", line 166, in eval_context
      return ccontext.evaluate(ctx)
    File "/home/aline/source/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
      final_context.update(context_to_eval.evaluate(ctx))
    File "/home/aline/source/web/trunk/addons/web/common/nonliterals.py", line 267, in evaluate
      final_context.update(context_to_eval.evaluate(ctx))
    File "/home/aline/source/web/trunk/addons/web/common/nonliterals.py", line 187, 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: "{'check_total': check_total, 'invoice_line': invoice_line, 'address_invoice_id': address_invoice_id, 'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False}", message: "name 'invoice_line' is not defined"

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