summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNumerigraphe - Lionel Sausin <ls@numerigraphe.fr>2011-11-21 16:20:47 +0100
committerNumerigraphe - Lionel Sausin <ls@numerigraphe.fr>2011-11-21 16:20:47 +0100
commitc8152fd3972a65fd4c8d0df5749b25b0761bbe0a (patch)
tree064c5cdf97e86dd89be02fe24189e9a8c9ebcfcd /addons
parent12795a5cc92be4f68984742d4aefe1fa4d2db01c (diff)
[IMP] remove debugging print statements
bzr revid: ls@numerigraphe.fr-20111121152047-k5bphj2egef8nfuu
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_fr_rib/bank.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/l10n_fr_rib/bank.py b/addons/l10n_fr_rib/bank.py
index cd8488f6dcd..ac67b536265 100644
--- a/addons/l10n_fr_rib/bank.py
+++ b/addons/l10n_fr_rib/bank.py
@@ -31,7 +31,7 @@ class res_partner_bank(osv.osv):
_inherit = "res.partner.bank"
def _check_key(self, cr, uid, ids):
- print """Check the RIB key"""
+ """Check the RIB key"""
for bank_acc in self.browse(cr, uid, ids):
# Ignore the accounts of type other than rib
if bank_acc.state !='rib':
@@ -43,11 +43,9 @@ class res_partner_bank(osv.osv):
or not bank_acc.acc_number or len(bank_acc.acc_number) != 11
or not bank_acc.key or len(bank_acc.key) != 2):
return False
-
# Get the rib data (without the key)
rib = "%s%s%s" % (bank_acc.bank_code, bank_acc.office,
bank_acc.acc_number)
- print rib
# Translate letters into numbers according to a specific table
# (notice how s -> 2)
# Note: maketrans and translate work best with latin1 - that
@@ -57,10 +55,8 @@ class res_partner_bank(osv.osv):
rib = rib.lower().encode('latin-1').translate(
string.maketrans(u'abcdefghijklmnopqrstuvwxyz',
u'12345678912345678923456789'))
- print rib
# compute the key
key = 97 - (100 * int(rib)) % 97
- print int(bank_acc.key), key
if int(bank_acc.key) != key:
return False
return True