From 608ad89b5638b13839a195fcb7fe7d202d1474d2 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Mon, 27 Aug 2007 12:52:38 +0000
Subject: [PATCH] New class inheritance.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15830 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Ticket.py | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/Document/Ticket.py b/product/ERP5/Document/Ticket.py
index 03732d17b6..bca4716c42 100644
--- a/product/ERP5/Document/Ticket.py
+++ b/product/ERP5/Document/Ticket.py
@@ -30,12 +30,22 @@ from AccessControl import ClassSecurityInfo
 
 from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
 from Products.ERP5.Document.Movement import Movement
+from Products.ERP5.Document.Project import Project
 
-class Ticket(Movement):
+class Ticket(Movement, Project):
     """
     A Ticket allows to track a sales process involving
     multilple Person and Organisations. It is a placeholder for
     documents, events, etc.
+
+    Tickets behave both a movements and as projects:
+
+    - as movements because they relate to an amount
+      of resource exchanged between multiple parties
+
+    - as a project because it acts as a reporting
+      node for other movements (ex. accounting,
+      task reports)
     """
 
     meta_type = 'ERP5 Ticket'
@@ -57,14 +67,15 @@ class Ticket(Movement):
                       , PropertySheet.Arrow
                       , PropertySheet.Price
                       , PropertySheet.Movement
+                      , PropertySheet.Amount
+                      , PropertySheet.Ticket
                       )
 
-    security.declareProtected(Permissions.AccessContentsInformation, 
-                              'isAccountable')
+    security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable')
     def isAccountable(self):
       """
         Returns 1 if this needs to be accounted
         Only account movements which are not associated to a delivery
         Whenever delivery is there, delivery has priority
       """
-      return 1
+      return 1
\ No newline at end of file
-- 
2.30.9