Commit 4d297a53 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove missplaced Warning-level log messages.

Improve log message about account currency.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d092b4c4
...@@ -582,10 +582,6 @@ class BaobabConduit(ERP5Conduit): ...@@ -582,10 +582,6 @@ class BaobabConduit(ERP5Conduit):
if k == 'currency' : currency_id = v if k == 'currency' : currency_id = v
if k == 'account_number': bank_account_number = v if k == 'account_number': bank_account_number = v
# try to find the bank account # try to find the bank account
LOG( 'bank_account_number:'
, 200
, bank_account_number
)
if bank_account_number != None: if bank_account_number != None:
bank_account_object = None bank_account_object = None
# We use here the catalog in order to find very quickly # We use here the catalog in order to find very quickly
...@@ -594,10 +590,6 @@ class BaobabConduit(ERP5Conduit): ...@@ -594,10 +590,6 @@ class BaobabConduit(ERP5Conduit):
bank_account_list = [x.getObject() for x in object.portal_catalog( bank_account_list = [x.getObject() for x in object.portal_catalog(
portal_type=('Bank Account'), portal_type=('Bank Account'),
)] )]
LOG( 'bank_account_list:'
, 200
, bank_account_list
)
# Make sure we have found the right bank account # Make sure we have found the right bank account
for bank_account in bank_account_list: for bank_account in bank_account_list:
if bank_account.getInternalBankAccountNumber() == bank_account_number: if bank_account.getInternalBankAccountNumber() == bank_account_number:
...@@ -616,7 +608,7 @@ class BaobabConduit(ERP5Conduit): ...@@ -616,7 +608,7 @@ class BaobabConduit(ERP5Conduit):
elif current_currency_id != currency_id: elif current_currency_id != currency_id:
LOG( 'BaobabConduit inconsistency:' LOG( 'BaobabConduit inconsistency:'
, 200 , 200
, 'found bank account has not the same currency as expected' , 'found bank account has not the expected currency (%s in stead of %s)' % (current_currency_id, currency_id)
) )
else: else:
LOG( 'BaobabConduit inconsistency:' LOG( 'BaobabConduit inconsistency:'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment