← Back to team overview

openerp-india team mailing list archive

[Bug 1235183] Re: Purchase : Select orderline product bug

 

Hello,

Thanks for your precious reply..!!

You are using old branch which is in  "on hold"  status any very old
branch. And this branch is not merged in stable 7.0 . So, please use
latest fresh code. And try to do the same , definitely you will not get
this error again.

So.This is not a bug , but its your side issue of using wrong branch.
So,In the meantime I am closing this issue.

I Hope this will clear your doubts.

Thanks,

** Changed in: openobject-addons
       Status: Incomplete => Invalid

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

Title:
  Purchase : Select orderline product bug

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  HI ,
  server revno :4962
  web revno :3913
   addons revno : 9498 

  1- Create a  purchase order , then select supplier . When selecting a
  product in orderline , I get this error

  Client Traceback (most recent call last):
    File "/mnt/hgfs/share/ADL_eclipse/adl-web/addons/web/http.py", line 204, in dispatch
      response["result"] = method(self, **self.params)
    File "/mnt/hgfs/share/ADL_eclipse/adl-web/addons/web/controllers/main.py", line 1129, in call_kw
      return self._call_kw(req, model, method, args, kwargs)
    File "/mnt/hgfs/share/ADL_eclipse/adl-web/addons/web/controllers/main.py", line 1121, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/mnt/hgfs/share/ADL_eclipse/adl-web/addons/web/session.py", line 43, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/mnt/hgfs/share/ADL_eclipse/adl-web/addons/web/session.py", line 31, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/mnt/hgfs/share/ADL_eclipse/adl-web/addons/web/session.py", line 104, in send
      raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/mnt/hgfs/share/ADL_eclipse/adl-web/addons/web/session.py", line 90, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/mnt/hgfs/share/ADL_eclipse/server/openerp/netsvc.py", line 292, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/mnt/hgfs/share/ADL_eclipse/server/openerp/service/web_services.py", line 626, in dispatch
      res = fn(db, uid, *params)
    File "/mnt/hgfs/share/ADL_eclipse/server/openerp/osv/osv.py", line 188, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/mnt/hgfs/share/ADL_eclipse/server/openerp/osv/osv.py", line 131, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/mnt/hgfs/share/ADL_eclipse/server/openerp/osv/osv.py", line 197, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/mnt/hgfs/share/ADL_eclipse/server/openerp/osv/osv.py", line 185, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/mnt/hgfs/share/ADL_eclipse/adl-addons/purchase/purchase.py", line 997, in onchange_product_id
      product.id, qty or 1.0, partner_id or False, {'uom': uom_id, 'date': date_order})[pricelist_id]
    File "/mnt/hgfs/share/ADL_eclipse/adl-addons/product/pricelist.py", line 414, in price_get
      return self.price_get_batch(cr, uid, ids, prod_id, qty, partner=partner, context=context)[prod_id[0]]
  KeyError: 2

  2- Create a purchase order , then add a order line and after that
  select a suplier there is no error.

  In case 1 the error is related to the choice of the partner becuase price_get_batch method has a partner argument wich is False in the second error. 
  Please Help

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1235183/+subscriptions


References