Commit 8dd58e74 authored by Aurel's avatar Aurel

force install if old format of business template


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5170 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 75fcd6f3
...@@ -3383,6 +3383,10 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -3383,6 +3383,10 @@ Business Template is a set of definitions, such as skins, portal types and categ
installed_bt.trash(self) installed_bt.trash(self)
force = 1 force = 1
installed_bt.replace(self) installed_bt.replace(self)
# Check the format of business template, if old, force install
if self.getTemplateFormatVersion() == 0:
force = 1
site = self.getPortalObject() site = self.getPortalObject()
from Products.ERP5.ERP5Site import ERP5Generator from Products.ERP5.ERP5Site import ERP5Generator
......
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