← Back to team overview

credativ team mailing list archive

lp:~credativ/openobject-addons/6.0-stockmove-unitprice-precision into lp:~credativ/openobject-addons/6.0

 

Kinner Vachhani has proposed merging lp:~credativ/openobject-addons/6.0-stockmove-unitprice-precision into lp:~credativ/openobject-addons/6.0.

Requested reviews:
  credativ (credativ)
Related bugs:
  Bug #1191041 in OpenERP Addons: "stock accounting: price_unit is not precise enough"
  https://bugs.launchpad.net/openobject-addons/+bug/1191041

For more details, see:
https://code.launchpad.net/~credativ/openobject-addons/6.0-stockmove-unitprice-precision/+merge/170203

[Bug fix] stock accounting: price_unit is not precise enough
-- 
https://code.launchpad.net/~credativ/openobject-addons/6.0-stockmove-unitprice-precision/+merge/170203
Your team credativ is requested to review the proposed merge of lp:~credativ/openobject-addons/6.0-stockmove-unitprice-precision into lp:~credativ/openobject-addons/6.0.
=== modified file 'stock/stock.py'
--- stock/stock.py	2013-04-24 21:59:10 +0000
+++ stock/stock.py	2013-06-18 21:07:27 +0000
@@ -1566,7 +1566,7 @@
         'state': fields.selection([('draft', 'Draft'), ('waiting', 'Waiting'), ('confirmed', 'Not Available'), ('assigned', 'Available'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, select=True,
               help='When the stock move is created it is in the \'Draft\' state.\n After that, it is set to \'Not Available\' state if the scheduler did not find the products.\n When products are reserved it is set to \'Available\'.\n When the picking is done the state is \'Done\'.\
               \nThe state is \'Waiting\' if the move is waiting for another one.'),
-        '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('Purchase 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),
         'partner_id': fields.related('picking_id','address_id','partner_id',type='many2one', relation="res.partner", string="Partner", store=True, select=True),