c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #18004
Re: [Bug 727162] Re: List Index out of range in product on_change
Why did you mark my bug as duplicate? Clearly my bug report was earlier.
Is this how it works, we report bugs then you re create them and mark ours
as duplicate?
On Wed, Mar 2, 2011 at 5:39 PM, Amit Parik (OpenERP)
<amp@xxxxxxxxxxx>wrote:
> ** This bug is no longer a duplicate of bug 726831
> [stable 6.0] product/pricelist.py uses incorrect id when supplier info is
> set to find uom
>
> --
> 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.
>
--
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