cannot open supplier invoice (O2M ?)

Bug #912676 reported by Aline (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
Nicolas Vanhoren (OpenERP)

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"

Changed in openerp-web:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Nicolas Vanhoren (OpenERP) (niv-openerp)
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

According to fp, this is an addons problem.

affects: openerp-web → openobject-addons
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Here is a patch that corrects this problem.

Revision history for this message
Raphael Collet (OpenERP) (rco-openerp) wrote :

fixed in trunk
revno: 6285
revision-id: <email address hidden>

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.