Salvi,

I am not yet sure about the 2nd problem you stated.

Can you share the configuration of pricelist and UoMs?

Thanks.

** Summary changed:

- List Index out of range in product on_change
+ Problem with the pricelist of type "Partner section of the product form"

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

** Changed in: openobject-addons
    Milestone: None => 6.0.3

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

Title:
  Problem with the pricelist of type "Partner section of the product
  form"

Status in OpenERP Modules (addons):
  Fix Released

Bug description:
  Steps to reproduce:

  1) Set a public price-list (sale price-list) based on "Partner section of the 
product form"
  2) create a new product (procure method-> make to order -> buy) 
  3) define the supplier
  4) create a sale order and select the product in sale order line.

  I get the following traceback.

  
  [2011-03-01 18:33:20,124][db_trunk2] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/tiny/workspace/openobject-server/openerp/osv/osv.py", line 122, 
in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/tiny/workspace/openobject-server/openerp/osv/osv.py", line 176, 
in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/tiny/workspace/openobject-server/openerp/osv/osv.py", line 167, 
in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/tiny/workspace/openobject-addons/sale/sale.py", line 1137, in 
product_id_change
      'date': date_order,
    File "/home/tiny/workspace/openobject-addons/product/pricelist.py", line 
298, 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/tiny/workspace/openobject-addons/product/pricelist.py", line 
247, in price_get_multi
      product_default_uom = product_obj.read(cr, uid, [tmpl_id], 
['uom_id'])[0]['uom_id'][0]
  IndexError: list index out of range

  Thanks.

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to