Commit 9095cc7a authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_administration: Accept some ignore list when deump Installed Business Template List

Ignore list is usefull when you have old business templates in production (used to include data for example) and test business templates on test environment (ie;: erp5_test_ui_core). This allow us control the dump to assert changes easily.
parent 0469a134
for business_template in sorted(context.getPortalObject().portal_templates.contentValues(portal_type='Business Template'),
key=lambda x:x.getTitle()):
if business_template.getInstallationState() == 'installed':
if business_template.getInstallationState() == 'installed' and \
business_template.getTitle() not in ignore_business_template_list:
print business_template.getTitle()
return printed
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>ignore_business_template_list=[]</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment