diff --git a/product/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py b/product/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py index 24a8f281917434ca8ca869eee4a65ac727ba126e..c22aedfb253177bd2de2ff6aa65a59f70e87d335 100644 --- a/product/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py +++ b/product/ERP5Form/Extensions/ERP5Site_updateModuleScribus.py @@ -79,10 +79,11 @@ def ERP5Site_updateModuleScribus(self, option_html = option_html # get object_title and portal_skin object using the object_portal_type - # to search the view in portal_skins folder + # (without any spaces) to search the view in portal_skins folder + temp_portal_type = object_portal_type.replace(' ', '') search_param = { 'obj_metatypes': 'ERP5 Form', - 'obj_searchterm': '%s_view' % object_portal_type, + 'obj_searchterm': '%s_view' % temp_portal_type, 'search_sub': 1 } result = portal.portal_skins.PrincipiaFind( portal.portal_skins,