diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 3b25fe7e800fa7cbd8d8972394d4fbaa59c0335c..9f97b6689795a6c737edde3735960ecaead72d6d 100755 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -3383,6 +3383,10 @@ Business Template is a set of definitions, such as skins, portal types and categ installed_bt.trash(self) force = 1 installed_bt.replace(self) + + # Check the format of business template, if old, force install + if self.getTemplateFormatVersion() == 0: + force = 1 site = self.getPortalObject() from Products.ERP5.ERP5Site import ERP5Generator