diff --git a/product/ERP5Banking/tests/TestERP5BankingMixin.py b/product/ERP5Banking/tests/TestERP5BankingMixin.py
index fb27a5c9745202b8cbb30b289a982d64592259c2..5416988f9d04d8a920bb117cc79304b71c50d4de 100644
--- a/product/ERP5Banking/tests/TestERP5BankingMixin.py
+++ b/product/ERP5Banking/tests/TestERP5BankingMixin.py
@@ -591,7 +591,7 @@ class TestERP5BankingMixin:
     """
     # we need to have a unique inventory group id by destination
     inventory_group_id = 'inventory_group_%s_%s' % \
-                         (destination.getParentValue().getId(),destination.getId())
+                         (destination.getParentValue().getUid(),destination.getId())
     if not hasattr(self, inventory_group_id):
       inventory_group =  self.cash_inventory_module.newContent(id=inventory_group_id,
                                                                portal_type='Cash Inventory Group',