Commit 13fc3098 authored by Julien Muchembled's avatar Julien Muchembled

Fix missing isRelatedLocallyIndexed accessor when upgrading products before property sheets

parent d72934e8
...@@ -796,6 +796,13 @@ class BaseCategory(Category): ...@@ -796,6 +796,13 @@ class BaseCategory(Category):
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
# BBB: Required to start instance with old
# version of erp5_property_sheets BT.
related_locally_indexed = False
def isRelatedLocallyIndexed(self):
"""Determines if related values should be indexed on target documents"""
return self.related_locally_indexed
def asSQLExpression(self, strict_membership=0, table='category', base_category=None): def asSQLExpression(self, strict_membership=0, table='category', base_category=None):
""" """
A Predicate can be rendered as an sql expression. This A Predicate can be rendered as an sql expression. This
......
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