From cea26d74c3ded0380155c4790f46a2195e189079 Mon Sep 17 00:00:00 2001
From: Ayush Tiwari <ayush.tiwari@nexedi.com>
Date: Wed, 12 Jul 2017 08:20:54 +0000
Subject: [PATCH] bt5_config: Use newly generated IDs while installing BMs

---
 product/ERP5/Tool/TemplateTool.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py
index 9e6dfb1686..f2df079003 100644
--- a/product/ERP5/Tool/TemplateTool.py
+++ b/product/ERP5/Tool/TemplateTool.py
@@ -1959,7 +1959,8 @@ class TemplateTool (BaseTool):
 
       for item in to_install_path_item_list:
         item.isIndexable = ConstantGetter('isIndexable', value=False)
-        installation_process._setObject(item.getId(), aq_base(item),
+        new_id = new_installation_state.generateNewId()
+        installation_process._setObject(new_id, aq_base(item),
                                         suppress_events=True)
 
       error_list = self.compareOldStateToOFS(installation_process, old_installation_state)
-- 
2.30.9