[MERGE] opw 55403: stock wizard: Precision of Average Unit Cost in Picking Processing
authorJean-Christophe VASSORT <jcv@openerp.com>
Tue, 21 Feb 2012 15:24:32 +0000 (16:24 +0100)
committerJean-Christophe VASSORT <jcv@openerp.com>
Tue, 21 Feb 2012 15:24:32 +0000 (16:24 +0100)
bzr revid: jcv@openerp.com-20120221152432-03majoi5ci7ydko7

addons/stock/wizard/stock_partial_move.py

index 59be28e..9cfc5fc 100644 (file)
@@ -21,6 +21,7 @@
 
 from osv import fields, osv
 from tools.translate import _
+import decimal_precision as dp
 import time
 
 
@@ -35,7 +36,7 @@ class stock_partial_move_memory_out(osv.osv_memory):
         'move_id' : fields.many2one('stock.move', "Move"),
         'wizard_id' : fields.many2one('stock.partial.move', string="Wizard"),
         'wizard_pick_id' : fields.many2one('stock.partial.picking', string="Wizard"),
-        'cost' : fields.float("Cost", help="Unit Cost for this product line"),
+        'cost' : fields.float("Cost", help="Unit Cost for this product line", digits_compute= dp.get_precision('Purchase Price')),
         'currency' : fields.many2one('res.currency', string="Currency", help="Currency in which Unit cost is expressed"),
         
     }