← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 734559] Re: [6.0.1] Pricelist : Price compution based on partner section of the product form

 

** Patch added: "pricelist.patch"
   https://bugs.launchpad.net/bugs/734559/+attachment/1906782/+files/pricelist.patch

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

Title:
  [6.0.1] Pricelist : Price compution based on partner section of the
  product form

Status in OpenERP Modules (addons):
  New

Bug description:
  In pricelist, we have price compution based on "Partner section of the product form". I created a new purchase order with a new line. I have got a traceback :
  Traceback (most recent call last):
    File "/home/alnslang/Projets/clients/demo/openerp/6.0/openobject-server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/alnslang/Projets/clients/demo/openerp/6.0/openobject-server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/alnslang/Projets/clients/demo/openerp/6.0/openobject-server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/alnslang/Projets/clients/demo/openerp/6.0/openobject-addons/purchase/purchase.py", line 701, in product_id_change
      'date': date_order,
    File "/home/alnslang/Projets/clients/demo/openerp/6.0/openobject-addons/product/pricelist.py", line 300, 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/alnslang/Projets/clients/demo/openerp/6.0/openobject-addons/product/pricelist.py", line 249, 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

  product_obj is product_product and not product_template. Please find a
  patch for fixed it.



Follow ups

References