[FIX] Decimal precision parameter for products is 'Product Unit of Measure' in v7

This commit is contained in:
Lionel Sausin
2014-06-17 16:22:00 +02:00
committed by Lionel Sausin (Numérigraphe)
parent 88de4c385c
commit b248c256d5
3 changed files with 7 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ class product_product(Model):
_columns = {'configurable_stock_level': fields.function(_compute_configurable_level,
type='float',
digits_compute=dp.get_precision('Product UoM'),
digits_compute=dp.get_precision('Product Unit of Measure'),
string='Custom level')}

View File

@@ -81,7 +81,7 @@ class stock_inventory_line2(osv.osv):
'location_id': fields.many2one('stock.location', 'Location', required=True),
'product_id': fields.many2one('product.product', 'Product', required=True, select=True),
'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),
'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM')),
'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure')),
'company_id': fields.related('inventory_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, select=True, readonly=True),
'prod_lot_id': fields.many2one('stock.production.lot', 'Production Lot', domain="[('product_id','=',product_id)]"),
'state': fields.related('inventory_id', 'state', type='char', string='State',readonly=True),

View File

@@ -64,7 +64,7 @@ class product_immediately_usable(orm.Model):
_product_available,
multi='qty_available',
type='float',
digits_compute=dp.get_precision('Product UoM'),
digits_compute=dp.get_precision('Product Unit of Measure'),
string='Quantity On Hand',
help="Current quantity of products.\n"
"In a context with a single Stock Location, this includes "
@@ -82,7 +82,7 @@ class product_immediately_usable(orm.Model):
_product_available,
multi='qty_available',
type='float',
digits_compute=dp.get_precision('Product UoM'),
digits_compute=dp.get_precision('Product Unit of Measure'),
string='Quantity Available',
help="Forecast quantity (computed as Quantity On Hand "
"- Outgoing + Incoming)\n"
@@ -101,7 +101,7 @@ class product_immediately_usable(orm.Model):
_product_available,
multi='qty_available',
type='float',
digits_compute=dp.get_precision('Product UoM'),
digits_compute=dp.get_precision('Product Unit of Measure'),
string='Incoming',
help="Quantity of products that are planned to arrive.\n"
"In a context with a single Stock Location, this includes "
@@ -118,7 +118,7 @@ class product_immediately_usable(orm.Model):
_product_available,
multi='qty_available',
type='float',
digits_compute=dp.get_precision('Product UoM'),
digits_compute=dp.get_precision('Product Unit of Measure'),
string='Outgoing',
help="Quantity of products that are planned to leave.\n"
"In a context with a single Stock Location, this includes "
@@ -133,7 +133,7 @@ class product_immediately_usable(orm.Model):
"Location typed as 'internal'."),
'immediately_usable_qty': fields.function(
_product_available,
digits_compute=dp.get_precision('Product UoM'),
digits_compute=dp.get_precision('Product Unit of Measure'),
type='float',
string='Immediately Usable',
multi='qty_available',