Precision of Average Unit Cost in Picking Processing
authorado <ado@tinyerp.com>
Wed, 28 Dec 2011 11:30:47 +0000 (17:00 +0530)
committerado <ado@tinyerp.com>
Wed, 28 Dec 2011 11:30:47 +0000 (17:00 +0530)
bzr revid: ado@tinyerp.com-20111228113047-38lejm8a0yh6z03f

addons/stock/wizard/stock_partial_move.py

index b15c795..a9d0d21 100644 (file)
@@ -21,6 +21,7 @@
 
 from osv import fields, osv
 from tools.translate import _
+import decimal_precision as dp
 import time
 
 
@@ -34,7 +35,7 @@ class stock_partial_move_memory_out(osv.osv_memory):
         'prodlot_id' : fields.many2one('stock.production.lot', 'Production Lot'),
         'move_id' : fields.many2one('stock.move', "Move"),
         'wizard_id' : fields.many2one('stock.partial.move', 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"),
     }