Merge lp:~openerp-dev/openobject-addons/6.0-opw-383660-skh into lp:openobject-addons/6.0

Proposed by Somesh Khare
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: no longer in the source branch.
Merged at revision: 5172
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-383660-skh
Merge into: lp:openobject-addons/6.0
Diff against target: 12 lines (+1/-1)
1 file modified
product/product.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-383660-skh
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+93392@code.launchpad.net

Description of the change

Hello,

Scenario:

1. Create new UoM Category
 From: Warehouse > Configuration > Product > Units of Measure > Units of Measure Categories As 'Board_UOM'

2. Create Unit of Measurement
 From: Warehouse > Configuration > Product > Units of Measure > Units of Measure

 Name: ‘Roll 3600’
 UoM category : ‘Board_UoM’
 UoM Type: ‘Bigger than the reference UoM’
 Ratio: ‘3600’ (entered)
 Rounding: ‘1’

After Saving the UOM ratio has been changed into ‘3597,122’. Backported the issue from the Trunk addons Revision: 5204.

Kindly review the branch and please share your view on it.

Thanks.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'product/product.py'
2--- product/product.py 2011-09-05 10:26:44 +0000
3+++ product/product.py 2012-02-16 12:17:23 +0000
4@@ -75,7 +75,7 @@
5 _description = 'Product Unit of Measure'
6
7 def _compute_factor_inv(self, factor):
8- return factor and round(1.0 / factor, 6) or 0.0
9+ return factor and (1.0 / factor) or 0.0
10
11 def _factor_inv(self, cursor, user, ids, name, arg, context=None):
12 res = {}