← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~numerigraphe-team/stock-logistic-warehouse/7.0-fix-decimal-precision into lp:stock-logistic-warehouse

 

Lionel Sausin - Numérigraphe has proposed merging lp:~numerigraphe-team/stock-logistic-warehouse/7.0-fix-decimal-precision into lp:stock-logistic-warehouse.

Requested reviews:
  Loïc Bellier - Numérigraphe (lb-b)
  Stock and Logistic Core Editors (stock-logistic-core-editors)

For more details, see:
https://code.launchpad.net/~numerigraphe-team/stock-logistic-warehouse/7.0-fix-decimal-precision/+merge/223881

In version 7 the name of the digital precision parameter for UoMs has changed : this branch updates the modules where the change is missing.
-- 
https://code.launchpad.net/~numerigraphe-team/stock-logistic-warehouse/7.0-fix-decimal-precision/+merge/223881
Your team Stock and Logistic Core Editors is requested to review the proposed merge of lp:~numerigraphe-team/stock-logistic-warehouse/7.0-fix-decimal-precision into lp:stock-logistic-warehouse.
=== modified file 'configurable_stock_level/product.py'
--- configurable_stock_level/product.py	2012-04-04 11:20:48 +0000
+++ configurable_stock_level/product.py	2014-06-20 09:34:11 +0000
@@ -48,7 +48,7 @@
     
     _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')}
 
                 

=== modified file 'stock_available_immediately/product.py'
--- stock_available_immediately/product.py	2014-02-19 11:43:35 +0000
+++ stock_available_immediately/product.py	2014-06-20 09:34:11 +0000
@@ -64,7 +64,7 @@
             _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 @@
             _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 @@
             _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 @@
             _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 @@
                  "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',

=== modified file 'stock_inventory_existing_lines/stock.py'
--- stock_inventory_existing_lines/stock.py	2012-03-07 12:56:37 +0000
+++ stock_inventory_existing_lines/stock.py	2014-06-20 09:34:11 +0000
@@ -81,7 +81,7 @@
         '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),