← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 695353] Re: [6.0RC1][product] Exception raised in function price_get_multi

 

** Changed in: openobject-addons
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/695353

Title:
  [6.0RC1][product] Exception raised in function price_get_multi

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  I've got the following traceback after choosing a product on the order line form (opened from a PO form). It happens only if I choose a price list in which price computation is based on the "partner section of the product form".

Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1594 tomi@phobos-20101229131406-sr7yhqt4jsu55tks
Traceback (most recent call last):
  File "/home/tomi/openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/tomi/openerp/server/bin/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/tomi/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/tomi/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/tomi/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/tomi/openerp/addons/purchase/purchase.py", line 690, in product_id_change
    'date': date_order,
  File "/home/tomi/openerp/addons/product/pricelist.py", line 301, in price_get
    res_multi = self.price_get_multi(cr, uid, pricelist_ids=ids, products_by_qty_by_partner=[(prod_id, qty, partner)], context=context)
  File "/home/tomi/openerp/addons/product/pricelist.py", line 251, in price_get_multi
    seller_uom = supplierinfo_obj.read(cr, uid, sinfo, ['product_uom'])[0]['product_uom'][0]
TypeError: 'bool' object is unsubscriptable





References