diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2012-12-21 14:03:02 +0100 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2012-12-21 14:03:02 +0100 |
| commit | e9f9e1191ca4e782d8014a4ba13a1feedf3fc4d7 (patch) | |
| tree | 0dc9b81c26efd865b8db64e345944254a62d2651 | |
| parent | 558fcc4471f3b5bf4ee9675a36ad834d611d9fca (diff) | |
[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
| -rw-r--r-- | addons/account_voucher/account_voucher.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 4d510853660..842e50ebff1 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -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 |
