c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #17951
[Bug 727162] [NEW] List Index out of range in product on_change
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 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.
Follow ups
-
[Bug 727162] Re: Problem with the pricelist of type "Partner section of the product form"
From: Salvi Angjeli, 2011-04-13
-
[Bug 727162] Re: Problem with the pricelist of type "Partner section of the product form"
From: Jay Vora (OpenERP), 2011-04-13
-
[Bug 727162] Re: Problem with the pricelist of type "Partner section of the product form"
From: Jay Vora (OpenERP), 2011-04-13
-
[Bug 727162] Re: List Index out of range in product on_change
From: Jay Vora (OpenERP), 2011-04-06
-
[Bug 727162] Re: List Index out of range in product on_change
From: Stephane Wirtel (OpenERP), 2011-04-04
-
[Bug 727162] Re: List Index out of range in product on_change
From: Sebastien LANGE - http://www.Syleam.fr, 2011-03-14
-
[Bug 727162] Re: List Index out of range in product on_change
From: Rifakat Haradwala (OpenERP), 2011-03-02
-
[Bug 727162] Re: List Index out of range in product on_change
From: Launchpad Bug Tracker, 2011-03-02
-
[Bug 727162] Re: List Index out of range in product on_change
From: Rifakat Haradwala (OpenERP), 2011-03-02
-
[Bug 727162] Re: List Index out of range in product on_change
From: Amit Parik (OpenERP), 2011-03-02
-
[Bug 727162] Re: List Index out of range in product on_change
From: Graeme Gellatly, 2011-03-01
-
[Bug 727162] [NEW] List Index out of range in product on_change
From: Amit Parik (OpenERP), 2011-03-01
References