c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #35990
[Bug 883124] Re: [trunk/6.1] editing a sale order line of an unsaved order breaks into error
*** This bug is a duplicate of bug 878116 ***
https://bugs.launchpad.net/bugs/878116
** This bug has been marked a duplicate of bug 878116
Error editing a product in Sales Order
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/883124
Title:
[trunk/6.1] editing a sale order line of an unsaved order breaks into
error
Status in OpenERP Web:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/883124/+subscriptions
References