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
1=== modified file 'configurable_stock_level/product.py'
2--- configurable_stock_level/product.py 2012-04-04 11:20:48 +0000
3+++ configurable_stock_level/product.py 2014-06-20 09:34:11 +0000
4@@ -48,7 +48,7 @@
5
6 _columns = {'configurable_stock_level': fields.function(_compute_configurable_level,
7 type='float',
8- digits_compute=dp.get_precision('Product UoM'),
9+ digits_compute=dp.get_precision('Product Unit of Measure'),
10 string='Custom level')}
11
12
13
14=== modified file 'stock_available_immediately/product.py'
15--- stock_available_immediately/product.py 2014-02-19 11:43:35 +0000
16+++ stock_available_immediately/product.py 2014-06-20 09:34:11 +0000
17@@ -64,7 +64,7 @@
18 _product_available,
19 multi='qty_available',
20 type='float',
21- digits_compute=dp.get_precision('Product UoM'),
22+ digits_compute=dp.get_precision('Product Unit of Measure'),
23 string='Quantity On Hand',
24 help="Current quantity of products.\n"
25 "In a context with a single Stock Location, this includes "
26@@ -82,7 +82,7 @@
27 _product_available,
28 multi='qty_available',
29 type='float',
30- digits_compute=dp.get_precision('Product UoM'),
31+ digits_compute=dp.get_precision('Product Unit of Measure'),
32 string='Quantity Available',
33 help="Forecast quantity (computed as Quantity On Hand "
34 "- Outgoing + Incoming)\n"
35@@ -101,7 +101,7 @@
36 _product_available,
37 multi='qty_available',
38 type='float',
39- digits_compute=dp.get_precision('Product UoM'),
40+ digits_compute=dp.get_precision('Product Unit of Measure'),
41 string='Incoming',
42 help="Quantity of products that are planned to arrive.\n"
43 "In a context with a single Stock Location, this includes "
44@@ -118,7 +118,7 @@
45 _product_available,
46 multi='qty_available',
47 type='float',
48- digits_compute=dp.get_precision('Product UoM'),
49+ digits_compute=dp.get_precision('Product Unit of Measure'),
50 string='Outgoing',
51 help="Quantity of products that are planned to leave.\n"
52 "In a context with a single Stock Location, this includes "
53@@ -133,7 +133,7 @@
54 "Location typed as 'internal'."),
55 'immediately_usable_qty': fields.function(
56 _product_available,
57- digits_compute=dp.get_precision('Product UoM'),
58+ digits_compute=dp.get_precision('Product Unit of Measure'),
59 type='float',
60 string='Immediately Usable',
61 multi='qty_available',
62
63=== modified file 'stock_inventory_existing_lines/stock.py'
64--- stock_inventory_existing_lines/stock.py 2012-03-07 12:56:37 +0000
65+++ stock_inventory_existing_lines/stock.py 2014-06-20 09:34:11 +0000
66@@ -81,7 +81,7 @@
67 'location_id': fields.many2one('stock.location', 'Location', required=True),
68 'product_id': fields.many2one('product.product', 'Product', required=True, select=True),
69 'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),
70- 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product UoM')),
71+ 'product_qty': fields.float('Quantity', digits_compute=dp.get_precision('Product Unit of Measure')),
72 'company_id': fields.related('inventory_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, select=True, readonly=True),
73 'prod_lot_id': fields.many2one('stock.production.lot', 'Production Lot', domain="[('product_id','=',product_id)]"),
74 'state': fields.related('inventory_id', 'state', type='char', string='State',readonly=True),

Subscribers

People subscribed via source and target branches