Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
a890b0b6
Commit
a890b0b6
authored
Dec 28, 2017
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_crm: do not copy interface_post documents when cloning Events
parent
91a61d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_afterClone.py
...kinTemplateItem/portal_skins/erp5_crm/Event_afterClone.py
+5
-0
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_afterClone.py
View file @
a890b0b6
portal
=
context
.
getPortalObject
()
# We must copy these properties as they are retrieved from data
content_dict
=
context
.
getPropertyDictFromContent
()
content_dict
[
'title'
]
=
context
.
getTitle
()
...
...
@@ -14,3 +15,7 @@ content_dict['source_list'] = content_dict.get('source_list', []) + \
context
.
edit
(
**
content_dict
)
# reset reference
context
.
Event_generateReference
()
# remove aggregates which are not attachments (ie: interface_post objects)
document_type_list
=
portal
.
getPortalEmbeddedDocumentTypeList
()
+
portal
.
getPortalDocumentTypeList
()
attachment_list
=
context
.
getAggregateList
(
portal_type
=
document_type_list
)
context
.
setAggregateList
(
attachment_list
)
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