Commit aab1e367 authored by Jérome Perrin's avatar Jérome Perrin

all documents having categories must use CategoryCore property sheet, because

updateRelatedContent in CategoryTool calls edit(categories= which only works
with this property sheet


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27469 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b5f467e6
......@@ -60,6 +60,7 @@ class BankAccount(Folder, Coordinate, MetaNode):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Task
, PropertySheet.Resource
, PropertySheet.Reference
......
......@@ -46,6 +46,7 @@ class Budget(Predicate, Variated):
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Folder
, PropertySheet.Predicate
, PropertySheet.SortIndex
......
......@@ -47,6 +47,7 @@ class BudgetLine(Predicate, XMLMatrix, Variated):
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Folder
, PropertySheet.Predicate
, PropertySheet.SortIndex
......
......@@ -38,6 +38,7 @@ class BudgetModel(Predicate):
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Folder
, PropertySheet.Predicate
, PropertySheet.SortIndex
......
......@@ -42,6 +42,7 @@ class BudgetTransfer(Supply):
# Default Properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.Folder
, PropertySheet.Task
, PropertySheet.Arrow
......
......@@ -44,6 +44,7 @@ class BudgetTransferLine(SupplyLine):
# Default Properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.Amount
, PropertySheet.Task
, PropertySheet.Arrow
......
......@@ -44,6 +44,7 @@ class BudgetVariation(Predicate):
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.SortIndex
, PropertySheet.Path
, PropertySheet.Predicate
......
......@@ -39,6 +39,7 @@ class CategoryBudgetVariation(BudgetVariation):
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.SortIndex
, PropertySheet.Path
, PropertySheet.Predicate
......
......@@ -89,6 +89,7 @@ class Domain(Predicate, MetaNode, MetaResource):
, PropertySheet.Predicate
, PropertySheet.Domain
, PropertySheet.SortIndex
, PropertySheet.CategoryCore
)
security.declareProtected( Permissions.AccessContentsInformation, 'getRelativeUrl' )
......
......@@ -60,6 +60,7 @@ class GeographicAddress(Coordinate, Base):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.GeographicAddress
)
......
......@@ -54,6 +54,7 @@ class InternetProtocolAddress(Base, Coordinate):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.InternetProtocolAddress
)
......
......@@ -67,6 +67,7 @@ class MailMessage(Event, CMFMailInMessage):
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.DublinCore
, PropertySheet.CategoryCore
, PropertySheet.Task
, PropertySheet.Arrow
, PropertySheet.Movement
......
......@@ -188,6 +188,7 @@ class Movement(XMLObject, Amount):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Amount
, PropertySheet.Task
, PropertySheet.Arrow
......
......@@ -39,7 +39,8 @@ class PeriodicityLineMixin(PeriodicityMixin):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
property_sheets = (PropertySheet.PeriodicityTerm,)
property_sheets = ( PropertySheet.PeriodicityTerm,
PropertySheet.CategoryCore, )
security.declareProtected(Permissions.AccessContentsInformation, 'getPeriodicityTermStopDate')
def getPeriodicityTermStopDate(self, start_date, default=None):
......
......@@ -76,6 +76,7 @@ class Predicate(XMLObject, Folder):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.Predicate
, PropertySheet.CategoryCore
, PropertySheet.SortIndex
)
......
......@@ -64,6 +64,7 @@ class Telephone(Coordinate, Base):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Telephone
)
# This is a list of regex.
......
......@@ -56,6 +56,7 @@ class TradeModelCell(TradeModelLine, MappedValue):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Amount
, PropertySheet.Price
, PropertySheet.TradeModelLine
......
......@@ -56,6 +56,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
# Declarative properties
property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem
, PropertySheet.CategoryCore
, PropertySheet.Amount
, PropertySheet.Price
, PropertySheet.TradeModelLine
......
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