Commit d86c0172 authored by Kevin Deldycke's avatar Kevin Deldycke

Must be subclass of Folder, else allowedContentTypes() return always None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4567 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90c5db4f
......@@ -31,9 +31,10 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5.Document.Image import Image
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.Document.Folder import Folder
class Agent(Image, XMLObject):
class Agent(Folder, Image, XMLObject):
"""
An Agent is a Person who is permitted to perform some actions on the bank account according to Privileges.
"""
......
......@@ -31,8 +31,10 @@ from Products.CMFCore.utils import getToolByName
from Products.CMFCore.WorkflowCore import WorkflowMethod
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.Document.Folder import Folder
class AgentPrivilege(XMLObject):
class AgentPrivilege(Folder, XMLObject):
"""
An Agent Privilege allow the Bank Account owner to give permissions to an Agent for a given period of time, for a maximum amount of money.
"""
......
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