Merge lp:~vauxoo/openerp-venezuela-localization/7.0-lp1078714-dev-hbto into lp:openerp-venezuela-localization

Proposed by hbto [Vauxoo] http://www.vauxoo.com
Status: Merged
Approved by: hbto [Vauxoo] http://www.vauxoo.com
Approved revision: 948
Merged at revision: 949
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/7.0-lp1078714-dev-hbto
Merge into: lp:openerp-venezuela-localization
Diff against target: 12 lines (+1/-1)
1 file modified
l10n_ve_withholding_iva/model/wh_iva.py (+1/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/7.0-lp1078714-dev-hbto
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Approve
Review via email: mp+198613@code.launchpad.net
To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_withholding_iva/model/wh_iva.py'
2--- l10n_ve_withholding_iva/model/wh_iva.py 2013-12-06 15:40:55 +0000
3+++ l10n_ve_withholding_iva/model/wh_iva.py 2013-12-11 17:03:01 +0000
4@@ -325,7 +325,7 @@
5 @param offset: compensation
6 """
7 if context is None: context = {}
8- return amount_ret >= amount * (wh_iva_rate - offset)/100.0 and amount_ret <= amount * (wh_iva_rate + offset)/100.0
9+ return amount_ret >= amount * (wh_iva_rate)/100.0 - offset and amount_ret <= amount * (wh_iva_rate)/100.0 + offset
10
11 def check_wh_taxes(self, cr, uid, ids, context=None):
12 """ Check that are valid and that amount retention is not greater than amount