Commit ee822169 authored by Sebastien Robin's avatar Sebastien Robin

fixed a typo error

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7828 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfb303ac
......@@ -234,6 +234,8 @@ class BaobabConduit(ERP5Conduit):
try:
# Get the object with the path
parent_object = object.restrictedTraverse(parent_object_path)
if parent_object is not None:
break
except ConflictError:
raise
except:
......@@ -514,6 +516,10 @@ class BaobabConduit(ERP5Conduit):
if k == 'currency' : currency_id = v
if k == 'account_number': bank_account_number = v
# try to find the bank account
LOG( 'bank_account_number:'
, 200
, bank_account_number
)
if bank_account_number != None:
bank_account_object = None
# We use here the catalog in order to find very quickly
......@@ -522,6 +528,10 @@ class BaobabConduit(ERP5Conduit):
bank_account_list = [x.getObject() for x in object.portal_catalog(
portal_type=('Bank Account'),
reference='%%%s%%' % bank_account_number)]
LOG( 'bank_account_list:'
, 200
, bank_account_list
)
# Make sure we have found the right bank account
for bank_account in bank_account_list:
if bank_account.getBankAccountNumber() == bank_account_number:
......@@ -866,7 +876,7 @@ class BaobabConduit(ERP5Conduit):
vault_site_object = agency_sub_item_object
# Parse the category tree (from the level of the inventory) in order to
# find the category corresponding to the vault
for vault_sub_item in vault_site_object.getCategoryChildtemList(base=1)[1:]:
for vault_sub_item in vault_site_object.getCategoryChildItemList(base=1)[1:]:
vault_sub_item_path = vault_sub_item[1]
vault_sub_item_object = category_tool.resolveCategory(vault_sub_item_path)
vault_sub_item_code = vault_sub_item_object.getCodification()
......
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