Hello Joel and Frédéric, Thanks for your contribution on this bug. I have checked this issue at my end and with your patch I can calculate the correct average price when the price type (eg: Cost Price type have different currency such as USD) is other than the company currency. I have fixed this issue with your patch into lp:~openerp-dev/openobject-addons/7.0-opw-599153-skh branch,
Revision ID: [email protected] Revision Number:9527 Soon our experts will review this branch and it will be merged into the stable 7.0 after the approval. Once again thanks for your participation and for your patch. Regards, Somesh Khare ** Changed in: openobject-addons Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Addons. https://bugs.launchpad.net/bugs/1238525 Title: [7.0] Wrong average cost computation when price type currency is different from company currency Status in OpenERP Community Backports (Addons): Fix Committed Status in OpenERP Addons (modules): Fix Committed Bug description: Test done with : http://7-0-22302.runbot.openerp.com/?db=7-0-22302-base Prerequisites ---------------------- * Install Warehouse management & Purchase * Go to setting / Configuaration / Purchases and activate 'Manage pricelist per supplier' & 'Compute product cost price based on average cost' * Go to setting / Configuration / Invoicing and activate 'Allow multi-currency' * Give the Admin user the Technical Features rights and Financial Manager * The company is in EUR * Go to Purchases / Configuration / Pricelists / Price Types * Modify the currency of the Price type 'Cost Price' to : USD (This means cost price in all product form are now USD costs.) * Ensure the current rate of USD is : 1.528900 * Ensure the cost of product 'USB Adapter' is 13.00 and current Qty in inventory is : 0 How to reproduce the bug ? ------------------------------------------------ * Create a new Supplier quotation to ASUStek with product 'USB Adapter' – Qty : 1 – Change the unit price to 20.(This quotation is in EUR) * Confirm Order * Receive Products effectively * Go to Product form and see that the Cost price is 20 → WRONG EXPECTED : it should be 20€ * 1.528900 = 30.58 $ since my price type is in USD. Thanks Frederic Clementi Camptocamp SA To manage notifications about this bug go to: https://bugs.launchpad.net/ocb-addons/+bug/1238525/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openerp-india Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-india More help : https://help.launchpad.net/ListHelp

