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

Proposed by Lionel Sausin - Initiatives/Numérigraphe
Status: Work in progress
Proposed branch: lp:~numerigraphe-team/stock-logistic-warehouse/7.0-fix-decimal-precision
Merge into: lp:stock-logistic-warehouse
Diff against target: 74 lines (+7/-7)
3 files modified
configurable_stock_level/product.py (+1/-1)
stock_available_immediately/product.py (+5/-5)
stock_inventory_existing_lines/stock.py (+1/-1)
To merge this branch: bzr merge lp:~numerigraphe-team/stock-logistic-warehouse/7.0-fix-decimal-precision
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp Needs Resubmitting
Pedro Manuel Baeza code review Approve
Loïc Bellier - Numérigraphe Pending
Review via email: mp+223881@code.launchpad.net

Description of the change

In version 7 the name of the digital precision parameter for UoMs has changed : this branch updates the modules where the change is missing.

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

LGTM.

Regards.

review: Approve (code review)
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

The source code management for this project has been moved to https://github.com/OCA/stock-logistics-warehouse

Could you resubmit this MP on the new site?

review: Needs Resubmitting
Revision history for this message
Lionel Sausin - Initiatives/Numérigraphe (ls-initiatives) wrote :

Pushed to github here: https://github.com/OCA/stock-logistics-warehouse/pull/18
Please reject the MP here to avoid confusion.

Unmerged revisions

35. By Numérigraphe

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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 @@
48 48
49 _columns = {'configurable_stock_level': fields.function(_compute_configurable_level,49 _columns = {'configurable_stock_level': fields.function(_compute_configurable_level,
50 type='float',50 type='float',
51 digits_compute=dp.get_precision('Product UoM'),51 digits_compute=dp.get_precision('Product Unit of Measure'),
52 string='Custom level')}52 string='Custom level')}
5353
54 54
5555
=== 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 @@
64 _product_available,64 _product_available,
65 multi='qty_available',65 multi='qty_available',
66 type='float',66 type='float',
67 digits_compute=dp.get_precision('Product UoM'),67 digits_compute=dp.get_precision('Product Unit of Measure'),
68 string='Quantity On Hand',68 string='Quantity On Hand',
69 help="Current quantity of products.\n"69 help="Current quantity of products.\n"
70 "In a context with a single Stock Location, this includes "70 "In a context with a single Stock Location, this includes "
@@ -82,7 +82,7 @@
82 _product_available,82 _product_available,
83 multi='qty_available',83 multi='qty_available',
84 type='float',84 type='float',
85 digits_compute=dp.get_precision('Product UoM'),85 digits_compute=dp.get_precision('Product Unit of Measure'),
86 string='Quantity Available',86 string='Quantity Available',
87 help="Forecast quantity (computed as Quantity On Hand "87 help="Forecast quantity (computed as Quantity On Hand "
88 "- Outgoing + Incoming)\n"88 "- Outgoing + Incoming)\n"
@@ -101,7 +101,7 @@
101 _product_available,101 _product_available,
102 multi='qty_available',102 multi='qty_available',
103 type='float',103 type='float',
104 digits_compute=dp.get_precision('Product UoM'),104 digits_compute=dp.get_precision('Product Unit of Measure'),
105 string='Incoming',105 string='Incoming',
106 help="Quantity of products that are planned to arrive.\n"106 help="Quantity of products that are planned to arrive.\n"
107 "In a context with a single Stock Location, this includes "107 "In a context with a single Stock Location, this includes "
@@ -118,7 +118,7 @@
118 _product_available,118 _product_available,
119 multi='qty_available',119 multi='qty_available',
120 type='float',120 type='float',
121 digits_compute=dp.get_precision('Product UoM'),121 digits_compute=dp.get_precision('Product Unit of Measure'),
122 string='Outgoing',122 string='Outgoing',
123 help="Quantity of products that are planned to leave.\n"123 help="Quantity of products that are planned to leave.\n"
124 "In a context with a single Stock Location, this includes "124 "In a context with a single Stock Location, this includes "
@@ -133,7 +133,7 @@
133 "Location typed as 'internal'."),133 "Location typed as 'internal'."),
134 'immediately_usable_qty': fields.function(134 'immediately_usable_qty': fields.function(
135 _product_available,135 _product_available,
136 digits_compute=dp.get_precision('Product UoM'),136 digits_compute=dp.get_precision('Product Unit of Measure'),
137 type='float',137 type='float',
138 string='Immediately Usable',138 string='Immediately Usable',
139 multi='qty_available',139 multi='qty_available',
140140
=== 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 @@
81 'location_id': fields.many2one('stock.location', 'Location', required=True),81 'location_id': fields.many2one('stock.location', 'Location', required=True),
82 'product_id': fields.many2one('product.product', 'Product', required=True, select=True),82 'product_id': fields.many2one('product.product', 'Product', required=True, select=True),
83 'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),83 'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),
84 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM')),84 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure')),
85 'company_id': fields.related('inventory_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, select=True, readonly=True),85 'company_id': fields.related('inventory_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, select=True, readonly=True),
86 'prod_lot_id': fields.many2one('stock.production.lot', 'Production Lot', domain="[('product_id','=',product_id)]"),86 'prod_lot_id': fields.many2one('stock.production.lot', 'Production Lot', domain="[('product_id','=',product_id)]"),
87 'state': fields.related('inventory_id', 'state', type='char', string='State',readonly=True),87 'state': fields.related('inventory_id', 'state', type='char', string='State',readonly=True),

Subscribers

People subscribed via source and target branches