← Back to team overview

credativ team mailing list archive

Re: [Merge] lp:~sylvain-legal/openupgrade-addons/migration-product into lp:openupgrade-addons

 

Review: Needs Fixing

Hi Sylvain, thanks for the work.
Maybe there is a problem in your migration script.
Indeed "Product Price" (xml_id decimal_price) is define is product_data.xml is in "noupdate mode", so with the way the xml_id is rename the name of the record will still be "Sale Price".
Normally keeping the old name is ok in many case, but OpenERP use the record name to get the correct decimal precision.
Indeed in sale.py the precision is get with "self.pool.get('decimal.precision').precision_get(cr, uid, 'Product Price')"

So you need into the post script to rename the decimal_price from "Sale Price" to "Product Price"

Thanks
-- 
https://code.launchpad.net/~sylvain-legal/openupgrade-addons/migration-product/+merge/174434
Your team OpenUpgrade Committers is subscribed to branch lp:openupgrade-addons.


References