openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #01861
[Bug 896909] [NEW] sale order line: 'product_uom_qty' is not defined
Public bug reported:
Hi,
With the latest version ( 6.1 ), I created a sales order and added two lines. If I open one of the lines to edit ( before saving the sales order, i get this error ):
Client Traceback (most recent call last):
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/controllers/main.py", line 799, in call
return self.call_common(req, model, method, args, domain_id, context_id)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/controllers/main.py", line 783, in call_common
c, d = eval_context_and_domain(req.session, context, domain)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/controllers/main.py", line 509, in eval_context_and_domain
e_context = session.eval_context(context)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/session.py", line 158, in eval_context
return ccontext.evaluate(ctx)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/openerp/bazaar/trunk/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 product is Type "Service/MTO/produce".
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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/896909
Title:
sale order line: 'product_uom_qty' is not defined
Status in OpenERP Addons (modules):
New
Bug description:
Hi,
With the latest version ( 6.1 ), I created a sales order and added two lines. If I open one of the lines to edit ( before saving the sales order, i get this error ):
Client Traceback (most recent call last):
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/http.py", line 154, in dispatch
response["result"] = method(controller, self, **self.params)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/controllers/main.py", line 799, in call
return self.call_common(req, model, method, args, domain_id, context_id)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/controllers/main.py", line 783, in call_common
c, d = eval_context_and_domain(req.session, context, domain)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/controllers/main.py", line 509, in eval_context_and_domain
e_context = session.eval_context(context)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/session.py", line 158, in eval_context
return ccontext.evaluate(ctx)
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/openerp/bazaar/trunk/openerp-web/addons/web/common/nonliterals.py", line 267, in evaluate
final_context.update(context_to_eval.evaluate(ctx))
File "/home/openerp/bazaar/trunk/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 product is Type "Service/MTO/produce".
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/896909/+subscriptions
Follow ups
References