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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
erp5
Commits
ad84c4fa
Commit
ad84c4fa
authored
Apr 15, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event are movements
parent
10d4aa61
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
product/ERP5/Document/Event.py
product/ERP5/Document/Event.py
+1
-1
product/ERP5/tests/testCRM.py
product/ERP5/tests/testCRM.py
+6
-0
No files found.
product/ERP5/Document/Event.py
View file @
ad84c4fa
...
@@ -88,7 +88,7 @@ class AcknowledgeableMixin:
...
@@ -88,7 +88,7 @@ class AcknowledgeableMixin:
result
=
True
result
=
True
return
result
return
result
class
Event
(
EmailDocument
,
Move
ment
,
AcknowledgeableMixin
):
class
Event
(
Movement
,
EmailDocu
ment
,
AcknowledgeableMixin
):
"""
"""
Event is the base class for all events in ERP5.
Event is the base class for all events in ERP5.
...
...
product/ERP5/tests/testCRM.py
View file @
ad84c4fa
...
@@ -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
...
...
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