← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

This has already been fixed in trunk - see here
https://bugs.launchpad.net/openobject-addons/+bug/727162 slightly
differently.  As uom is a template field it was done by creating a template
object, rather than reading via the product object.  Would be nice if trunk
and 6.0 were the same.

On Mon, Mar 14, 2011 at 12:14 PM, Sebastien LANGE - http://www.Syleam.fr <
734559@xxxxxxxxxxxxxxxxxx> wrote:

> ** Patch added: "pricelist.patch"
>
> https://bugs.launchpad.net/bugs/734559/+attachment/1906782/+files/pricelist.patch
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Addons.
> 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.
>

-- 
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.



References