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
Noah Brackenbury
erp5
Commits
52e6e9a3
Commit
52e6e9a3
authored
Jun 06, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allows to pass resource and extend follow_up_list instead of replace it
parent
49d9bff7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createFollowUpTicket.xml
...Item/portal_skins/erp5_crm/Event_createFollowUpTicket.xml
+7
-3
bt5/erp5_crm/bt/revision
bt5/erp5_crm/bt/revision
+1
-1
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createFollowUpTicket.xml
View file @
52e6e9a3
...
...
@@ -51,23 +51,27 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
# this script allows to create a new follow up ticket for a given event\n
portal = context.getPortalObject()\n
event = context\n
ticket_module =
event
.getPortalObject().getDefaultModule(follow_up_ticket_type)\n
ticket_module =
portal
.getPortalObject().getDefaultModule(follow_up_ticket_type)\n
\n
# Create a new object\n
new_object = ticket_module.newContent(\n
portal_type=follow_up_ticket_type,\n
title=follow_up_ticket_title,\n
resource=follow_up_ticket_resource,\n
destination_decision_list=event.getSourceList()\n
)\n
\n
# Now create the relation between the event object and the new follow up ticket\n
event.setFollowUpValueList([new_object])\n
follow_up_list = event.getFollowUpList()\n
follow_up_list.append(new_object.getRelativeUrl())\n
event.setFollowUpValueList(follow_up_list)\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
follow_up_ticket_title="Sale Opportunity", follow_up_ticket_type=None
</string>
</value>
<value>
<string>
follow_up_ticket_title="Sale Opportunity", follow_up_ticket_type=None
, follow_up_ticket_resource=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_crm/bt/revision
View file @
52e6e9a3
559
\ No newline at end of file
560
\ No newline at end of file
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