diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-03-09 12:21:32 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-03-09 12:23:14 +0100 |
| commit | 948befbb34693f20ea971775fbebb8e1084c99d2 (patch) | |
| tree | 8416d779d4c4b00cc2cf3f08f31e51a07615198e | |
| parent | 20173836b12e4343450ab3efe20277a95d7996cf (diff) | |
[FIX] mrp: set decimal precsion on qty field for produce wizard
In manufacturing bom lines, digits_compute is set
to the precision 'Product Unit of Measure'.
It should be the case as well in the produce wizard,
otherwise you won't be able to change the quantity
within this wizard to the according product quantity precision
opw-629657
| -rw-r--r-- | addons/mrp/wizard/mrp_product_produce.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/wizard/mrp_product_produce.py b/addons/mrp/wizard/mrp_product_produce.py index f41bcec9c76..16dd8fd1390 100644 --- a/addons/mrp/wizard/mrp_product_produce.py +++ b/addons/mrp/wizard/mrp_product_produce.py @@ -29,7 +29,7 @@ class mrp_product_produce_line(osv.osv_memory): _columns = { 'product_id': fields.many2one('product.product', 'Product'), - 'product_qty': fields.float('Quantity (in default UoM)'), + 'product_qty': fields.float('Quantity (in default UoM)', digits_compute=dp.get_precision('Product Unit of Measure')), 'lot_id': fields.many2one('stock.production.lot', 'Lot'), 'produce_id': fields.many2one('mrp.product.produce'), 'track_production': fields.related('product_id', 'track_production', type='boolean'), |
