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.
([1316026](https://bugs.launchpad.net/openobject-addons/+bug/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.
([1324042](https://bugs.launchpad.net/openobject-addons/+bug/1324042/))