c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #17978
[Bug 727162] Re: List Index out of range in product on_change
*** This bug is a duplicate of bug 726831 ***
https://bugs.launchpad.net/bugs/726831
This looks like a duplicate of 726831 which includes solution
On Wed, Mar 2, 2011 at 2:16 AM, Amit Parik (OpenERP)
<amp@xxxxxxxxxxx>wrote:
> Public bug reported:
>
> 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.
>
> ** Affects: openobject-addons
> Importance: Low
> Assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2)
> Status: Confirmed
>
> ** Changed in: openobject-addons
> Importance: Undecided => Low
>
> ** Changed in: openobject-addons
> Status: New => Confirmed
>
> ** Changed in: openobject-addons
> Assignee: (unassigned) => OpenERP R&D Addons Team 2
> (openerp-dev-addons2)
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Addons.
> https://bugs.launchpad.net/bugs/727162
>
> Title:
> List Index out of range in product on_change
>
> Status in OpenERP Modules (addons):
> Confirmed
>
> 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.
>
** This bug has been marked a duplicate of bug 726831
[stable 6.0] product/pricelist.py uses incorrect id when supplier info is set to find uom
* You can subscribe to bug 726831 by following this link: https://bugs.launchpad.net/openobject-addons/+bug/726831/+subscribe
--
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:
List Index out of range in product on_change
Status in OpenERP Modules (addons):
Confirmed
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.
References