[trunk/6.1] editing a sale order line of an unsaved order breaks into error

Bug #883124 reported by Raphaël Valyi - http://www.akretion.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hello,

using trunk rev #1394 + head server/addons + demo data,
I create a new sale order for Axelor partner, then I add one order line with product "ATX". I close the order line popup with the "Save & Close" button. This adds an order line in the order form.
Notice that I don't save the order at this stage!
Then, I try to re-open the same order line by clicking on it, but when opening the popup, I receive this error:

Client Traceback (most recent call last):
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/addons/web/controllers/main.py", line 720, in call
    return self.call_common(req, model, method, args, domain_id, context_id)
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/addons/web/controllers/main.py", line 704, in call_common
    c, d = eval_context_and_domain(req.session, context, domain)
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/addons/web/controllers/main.py", line 430, in eval_context_and_domain
    e_context = session.eval_context(context)
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/addons/web/common/session.py", line 158, in eval_context
    return ccontext.evaluate(ctx)
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/addons/web/common/nonliterals.py", line 267, in evaluate
    final_context.update(context_to_eval.evaluate(ctx))
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/addons/web/common/nonliterals.py", line 267, in evaluate
    final_context.update(context_to_eval.evaluate(ctx))
  File "/home/rvalyi/DEV/openerp/openerp6.1/openerp-web/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: "{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}", message: "name 'product_uom_qty' is not defined"

The same works with the GTK client. Also notice if I save the order, then opening an order line generates no error.

Hope this helps.

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.