Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vivek
erp5
Commits
e00e1266
Commit
e00e1266
authored
Dec 12, 2012
by
Jérome Perrin
Committed by
Julien Muchembled
Dec 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix class hierarchy for projects and tickets
parent
323810f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
product/ERP5/Document/Project.py
product/ERP5/Document/Project.py
+4
-3
product/ERP5/Document/Ticket.py
product/ERP5/Document/Ticket.py
+2
-3
No files found.
product/ERP5/Document/Project.py
View file @
e00e1266
...
...
@@ -33,10 +33,11 @@ import zope.interface
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5.Document.Node
import
Node
from
Products.ERP5.Document.Movement
import
Movement
from
Products.ERP5Type.XMLMatrix
import
XMLMatrix
class
Project
(
XMLObjec
t
,
XMLMatrix
):
class
Project
(
Node
,
Movemen
t
,
XMLMatrix
):
"""
Project is a class which describes a typical project in consulting firm.
A project has a client, an invoiced client. A project has also a start
...
...
@@ -54,7 +55,7 @@ class Project(XMLObject, XMLMatrix):
isDelivery
=
ConstantGetter
(
'isDelivery'
,
value
=
True
)
isAccountable
=
ConstantGetter
(
'isAccountable'
,
value
=
False
)
zope
.
interface
.
implements
(
interfaces
.
INode
)
zope
.
interface
.
implements
(
interfaces
.
INode
,
interfaces
.
IMovement
)
# Declarative security
security
=
ClassSecurityInfo
()
...
...
product/ERP5/Document/Ticket.py
View file @
e00e1266
...
...
@@ -30,10 +30,9 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5.Document.Movement
import
Movement
from
Products.ERP5.Document.Project
import
Project
class
Ticket
(
Movement
,
Project
):
class
Ticket
(
Project
):
"""
A Ticket allows to track a sales process involving
multilple Person and Organisations. It is a placeholder for
...
...
@@ -78,6 +77,6 @@ class Ticket(Movement, Project):
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'isAccountable'
)
def
isAccountable
(
self
):
"""
Tickets are accountable.
"""Tickets are accountable.
"""
return
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment