[FIX] account_voucher: bug fixed in the supplier partial payment. There is no need...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Fri, 21 Dec 2012 13:03:02 +0000 (14:03 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Fri, 21 Dec 2012 13:03:02 +0000 (14:03 +0100)
bzr revid: qdp-launchpad@openerp.com-20121221130302-23v55ygcqekdlywi

addons/account_voucher/account_voucher.py

index 4d51085..842e50e 100644 (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