[FIX] account_voucher: bug fixed in the supplier partial payment. There is no need to take care of the sign as the residual amount of account.move.line is already taking care of it

bzr revid: qdp-launchpad@openerp.com-20121221130302-23v55ygcqekdlywi
This commit is contained in:
Quentin (OpenERP)
2012-12-21 14:03:02 +01:00
parent 558fcc4471
commit e9f9e1191c
+2 -3
View File
@@ -599,12 +599,11 @@ class account_voucher(osv.osv):
This function returns True if the line is considered as noise and should not be displayed
"""
if line.reconcile_partial_id:
sign = 1 if ttype == 'receipt' else -1
if currency_id == line.currency_id.id:
if line.amount_residual_currency * sign <= 0:
if line.amount_residual_currency <= 0:
return True
else:
if line.amount_residual * sign <= 0:
if line.amount_residual <= 0:
return True
return False