← Back to team overview

credativ team mailing list archive

[Bug 896909] Re: sale order line: 'product_uom_qty' is not defined

 

** Project changed: openobject-addons => openerp-web

** Changed in: openerp-web
   Importance: Undecided => Medium

** Changed in: openerp-web
       Status: New => Confirmed

** Changed in: openerp-web
     Assignee: (unassigned) => OpenERP R&D Web Team (openerp-dev-web)

-- 
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/896909

Title:
  sale order line: 'product_uom_qty' is not defined

Status in OpenERP Web:
  Confirmed

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/openerp-web/+bug/896909/+subscriptions


References