[6.0 TRUNK] product Why factor_inv is calculated issue rounding

Bug #932390 reported by Nhomar - Vauxoo
0
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

I saw this:

'factor_inv': fields.function(_factor_inv, digits_compute=dp.get_ precision('Product UoM'),
             fnct_inv=_factor_inv_write,
             method=True, string='Ratio',
             help='How many times this UoM is bigger than the reference Uo M in this category:\n'\
                     '1 * (this unit) = ratio * (reference unit)', require d=True),

When you verify the compute:

     def _compute_factor_inv(self, factor):
         return factor and round(1.0 / factor, 6) or 0.0

In what parallel world you save a FACTOR calculating with a rounding that provoce an bigger error than the solved for it.

If you look in a book, you can see how the indirect measure is un precise and bad done, you need to measure directly and put results exactly on your equations.

This algorith in moy point of view is totally wrong.

Example case.

Put a unit PCE.
Create anothe one where this unit is base, and bigger than base.
Put 12000

See how value is wrong calculated (and it must not be calculated.)

result.: Customer really unconfortable because he think system has really bad features in base.

Thanks.

Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello Nhomar,

This issue is only effecting in Stable .It's working properly fine in Trunk with revision no :: 6582
So , I am setting it as duplicate of lp:931363

Thanks!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.