From 1609f18060cbba46a7379b01fb93aacd17b2b577 Mon Sep 17 00:00:00 2001 From: Dhruti Shastri Date: Fri, 1 Feb 2013 18:56:48 +0530 Subject: [PATCH] [FIX][stock] : decimal precision wrong when invoice a purchaseorder with invoicing Based on incoming shipments lp bug: https://launchpad.net/bugs/1105075 fixed bzr revid: dhs@tinyerp.com-20130201132648-znpkyatl037st2y7 --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 7198c89e286..bd1fd82eef8 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1646,7 +1646,7 @@ class stock_move(osv.osv): "* Waiting Availability: This state is reached when the procurement resolution is not straight forward. It may need the scheduler to run, a component to me manufactured...\n"\ "* Available: When products are reserved, it is set to \'Available\'.\n"\ "* Done: When the shipment is processed, the state is \'Done\'."), - 'price_unit': fields.float('Unit Price', digits_compute= dp.get_precision('Account'), help="Technical field used to record the product cost set by the user during a picking confirmation (when average price costing method is used)"), + 'price_unit': fields.float('Unit Price', digits_compute= dp.get_precision('Product Price'), help="Technical field used to record the product cost set by the user during a picking confirmation (when average price costing method is used)"), 'price_currency_id': fields.many2one('res.currency', 'Currency for average price', help="Technical field used to record the currency chosen by the user during a picking confirmation (when average price costing method is used)"), 'company_id': fields.many2one('res.company', 'Company', required=True, select=True), 'backorder_id': fields.related('picking_id','backorder_id',type='many2one', relation="stock.picking", string="Back Order of", select=True),