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

Event are movements

parent 10d4aa61
...@@ -88,7 +88,7 @@ class AcknowledgeableMixin: ...@@ -88,7 +88,7 @@ class AcknowledgeableMixin:
result = True result = True
return result return result
class Event(EmailDocument, Movement, AcknowledgeableMixin): class Event(Movement, EmailDocument, AcknowledgeableMixin):
""" """
Event is the base class for all events in ERP5. Event is the base class for all events in ERP5.
......
...@@ -97,6 +97,12 @@ class TestCRM(BaseTestCRM): ...@@ -97,6 +97,12 @@ class TestCRM(BaseTestCRM):
event.setQuantity(321) event.setQuantity(321)
self.assertEquals(321, event.getQuantity()) self.assertEquals(321, event.getQuantity())
def test_Event_isMovement(self):
event_module = self.portal.event_module
for portal_type in self.portal.getPortalEventTypeList():
event = event_module.newContent(portal_type=portal_type)
self.assertTrue(event.isMovement(),
"%s is not a movement" % portal_type)
def test_Event_CreateRelatedEvent(self): def test_Event_CreateRelatedEvent(self):
# test workflow to create a related event from responded event # test workflow to create a related event from responded event
......
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