Commit 11c9ac9d authored by Łukasz Nowak's avatar Łukasz Nowak

Start implementation of 00 step.

parent 287456ae
......@@ -50,7 +50,31 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>raise NotImplementedError\n
<value> <string>portal = context.getPortalObject()\n
\n
# drop not needed builders\n
for builder_id in [\n
\'purchase_invoice_tax_builder\',\n
\'sale_invoice_tax_builder\',\n
]:\n
if builder_id in portal.portal_deliveries.objectIds():\n
portal.portal_deliveries.deleteContent(builder_id)\n
\n
# uninstall not needed Business Templates\n
unwanted_business_template_list = [\n
\'erp5_ui_test\',\n
\'erp5_discount_resource\',\n
\'erp5_tax_resource\',\n
\'erp5_legacy_tax_system\',\n
]\n
\n
for bt5 in portal.portal_templates.contentValues(portal_type=\'Business Template\'):\n
if bt5.getTitle() in unwanted_business_template_list:\n
if bt5.getInstallationState() == \'installed\':\n
bt5.uninstall()\n
\n
raise NotImplementedError\n
return \'Done.\'\n
</string> </value>
</item>
<item>
......
......@@ -83,7 +83,6 @@ REQUIRED_BT5_ID_LIST = [\n
\'erp5_dms\',\n
\'erp5_computer_immobilisation\',\n
\'erp5_credential\',\n
\'erp5_discount_resource\',\n
\'erp5_commerce\',\n
\'erp5_pdm\',\n
\'erp5_knowledge_pad\',\n
......@@ -95,7 +94,6 @@ REQUIRED_BT5_ID_LIST = [\n
\'erp5_simulation\',\n
\'erp5_trade\',\n
\'erp5_ui_test_core\',\n
\'erp5_tax_resource\',\n
\'erp5_system_event\',\n
\'erp5_ui_test\',\n
\'erp5_secure_payment\',\n
......
31
\ No newline at end of file
32
\ No newline at end of file
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