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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
erp5
Commits
f65e20ce
Commit
f65e20ce
authored
Dec 20, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testCRM: small simplifications
parent
43a6bc07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
product/ERP5/tests/testCRM.py
product/ERP5/tests/testCRM.py
+9
-10
No files found.
product/ERP5/tests/testCRM.py
View file @
f65e20ce
...
@@ -1169,8 +1169,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1169,8 +1169,7 @@ class TestCRMMailSend(BaseTestCRM):
self
.
tic
()
self
.
tic
()
# Add a ticket
# Add a ticket
ticket
=
self
.
portal
.
campaign_module
.
newContent
(
id
=
'1'
,
ticket
=
self
.
portal
.
campaign_module
.
newContent
(
portal_type
=
'Campaign'
,
portal_type
=
'Campaign'
,
title
=
'Advertisement'
)
title
=
'Advertisement'
)
# Create a event
# Create a event
ticket
.
Ticket_newEvent
(
portal_type
=
'Mail Message'
,
ticket
.
Ticket_newEvent
(
portal_type
=
'Mail Message'
,
...
@@ -1179,7 +1178,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1179,7 +1178,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'outgoing'
)
direction
=
'outgoing'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
aggregate
=
document
.
getRelativeUrl
(),
aggregate
=
document
.
getRelativeUrl
(),
...
@@ -1226,7 +1225,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1226,7 +1225,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'outgoing'
)
direction
=
'outgoing'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
aggregate
=
document
.
getRelativeUrl
(),
aggregate
=
document
.
getRelativeUrl
(),
...
@@ -1272,7 +1271,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1272,7 +1271,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'outgoing'
)
direction
=
'outgoing'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
aggregate
=
document
.
getRelativeUrl
(),
aggregate
=
document
.
getRelativeUrl
(),
...
@@ -1318,7 +1317,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1318,7 +1317,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'outgoing'
)
direction
=
'outgoing'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
aggregate
=
document
.
getRelativeUrl
(),
aggregate
=
document
.
getRelativeUrl
(),
...
@@ -1365,7 +1364,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1365,7 +1364,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'outgoing'
)
direction
=
'outgoing'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
aggregate
=
document
.
getRelativeUrl
(),
aggregate
=
document
.
getRelativeUrl
(),
...
@@ -1407,7 +1406,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1407,7 +1406,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'incoming'
)
direction
=
'incoming'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
text_content
=
'This is an advertisement mail.'
)
text_content
=
'This is an advertisement mail.'
)
...
@@ -1463,7 +1462,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1463,7 +1462,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'outgoing'
)
direction
=
'outgoing'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
aggregate
=
document_txt
.
getRelativeUrl
(),
aggregate
=
document_txt
.
getRelativeUrl
(),
...
@@ -1521,7 +1520,7 @@ class TestCRMMailSend(BaseTestCRM):
...
@@ -1521,7 +1520,7 @@ class TestCRMMailSend(BaseTestCRM):
direction
=
'outgoing'
)
direction
=
'outgoing'
)
# Set sender and attach a document to the event.
# Set sender and attach a document to the event.
event
=
self
.
portal
.
event_module
.
objectValues
()[
0
]
event
,
=
self
.
portal
.
event_module
.
objectValues
()
event
.
edit
(
source
=
'person_module/me'
,
event
.
edit
(
source
=
'person_module/me'
,
destination
=
'person_module/recipient'
,
destination
=
'person_module/recipient'
,
aggregate
=
document_gif
.
getRelativeUrl
(),
aggregate
=
document_gif
.
getRelativeUrl
(),
...
...
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