odoo/odoo — pull request #403 by laetitia-gangloff (2014-06-06 09:08:35+00:00)
Title: Lp 1316026 lp 1324042 lga

Hello,

it seems there is a performance problem with the change standard price.

I got an OpenERP (7.0) with more than 15000 internal location. On product I defined "Average Price" as "Costing Method".

On a product, if I update cost price, it takes a very very long time (I'm not enough patient to finish !).

In stock.product.do_change_standard_price I see a loop on all internal location !

It seems that we can loop only on internal destination location of stock move related to product. The product was never in other location.
(lp:1316026)

it seems there is a data problem with the change standard price.

I got an OpenERP (7.0) on product I defined "Average Price" as "Costing Method".

On a product, if I update cost price, the create journal items doesn't contains the link with the product.
(lp:1324042)