diff --git a/product/ERP5SyncML/Conduit/BaobabConduit.py b/product/ERP5SyncML/Conduit/BaobabConduit.py index 4c1defbf48629bebb45403d6b89c60193ddf4320..3d9da249f7662e7981d56ddcead2eb6519c99954 100755 --- a/product/ERP5SyncML/Conduit/BaobabConduit.py +++ b/product/ERP5SyncML/Conduit/BaobabConduit.py @@ -154,8 +154,13 @@ class BaobabConduit(ERP5Conduit): erp5_site_path = object.absolute_url(relative=1) person_module = object.person organisation_module = object.organisation - cash_inventory_module = object.cash_inventory_module - currency_cash_module = object.currency_cash_module + + # Modules below are not always required + # (it depends of the nature of objects you want to synchronize) + try: cash_inventory_module = object.cash_inventory_module + except: cash_inventory_module = None + try: currency_cash_module = object.currency_cash_module + except: currency_cash_module = None subobject = None