diff --git a/product/ERP5SyncML/Conduit/ERP5DocumentConduit.py b/product/ERP5SyncML/Conduit/ERP5DocumentConduit.py index 68d990cc4f5ac00e78d9ad414f3074f0b9e504e1..11b00e5d9a9c90b3728db2a174097e5c76d56403 100644 --- a/product/ERP5SyncML/Conduit/ERP5DocumentConduit.py +++ b/product/ERP5SyncML/Conduit/ERP5DocumentConduit.py @@ -100,7 +100,7 @@ class ERP5DocumentConduit(ERP5Conduit): if subnode.xpath('name()') in self.XUPDATE_DEL: node_to_remove_list = xml.xpath(request) if node_to_remove_list: - xml.remove(xml.xpath(request)[0]) + xml.remove(node_to_remove_list[0]) data_change[prop_id] = xml xml_xupdate.remove(subnode) elif subnode.xpath('name()') in self.XUPDATE_UPDATE: