bugfix_sale

bzr revid: fp@tinyerp.com-20090128171021-cuoelc2j7dqx18h7
This commit is contained in:
Fabien Pinckaers
2009-01-28 18:10:21 +01:00
parent 995474adf1
commit ddddc18cff
+1 -1
View File
@@ -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