[FIX] Fix the rate
lp bug: https://launchpad.net/bugs/322390 fixed bzr revid: stephane@tinyerp.com-20090128182131-30967pncjn3zcnod
This commit is contained in:
parent
30a216023c
commit
1e2e50acaf
|
@ -128,7 +128,7 @@ class sale_order(osv.osv):
|
|||
if invoice.state not in ('draft','cancel'):
|
||||
tot += invoice.amount_untaxed
|
||||
if tot:
|
||||
res[sale.id] = tot * 100.0 / sale.amount_untaxed
|
||||
res[sale.id] = min(100.0, tot * 100.0 / sale.amount_untaxed)
|
||||
else:
|
||||
res[sale.id] = 0.0
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue