Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
5b194920
Commit
5b194920
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
040fd755
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 @
5b194920
portal
=
context
.
getPortalObject
()
# We must copy these properties as they are retrieved from data
# We must copy these properties as they are retrieved from data
content_dict
=
context
.
getPropertyDictFromContent
()
content_dict
=
context
.
getPropertyDictFromContent
()
content_dict
[
'title'
]
=
context
.
getTitle
()
content_dict
[
'title'
]
=
context
.
getTitle
()
...
@@ -14,3 +15,7 @@ content_dict['source_list'] = content_dict.get('source_list', []) + \
...
@@ -14,3 +15,7 @@ content_dict['source_list'] = content_dict.get('source_list', []) + \
context
.
edit
(
**
content_dict
)
context
.
edit
(
**
content_dict
)
# reset reference
# reset reference
context
.
Event_generateReference
()
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