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
Leo Le Bouter
erp5
Commits
f9c452fb
Commit
f9c452fb
authored
Apr 30, 2013
by
Jérome Perrin
Committed by
Gabriel Monnerat
May 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display an empty item and fix docstring
parent
f323163c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_getAssessmentFormIdList.xml
.../portal_skins/erp5_crm/Ticket_getAssessmentFormIdList.xml
+3
-5
bt5/erp5_crm/bt/revision
bt5/erp5_crm/bt/revision
+1
-1
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_getAssessmentFormIdList.xml
View file @
f9c452fb
...
...
@@ -51,15 +51,13 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""\n
This script returns the list of items based on the preferred\n
resources for events. It is intended to be used\n
by ListField instances.\n
This script returns the list of forms that will be used as assessment forms on tickets\n
"""\n
\n
from Products.ERP5Type.Cache import CachingMethod\n
\n
def getFormItemList():\n
result = []\n
result = [
(\'\', \'\')
]\n
form_id_list = context.portal_preferences.getPreferredEventAssessmentFormIdList()\n
for form_id in form_id_list:\n
form = getattr(context.getPortalObject(), form_id, None)\n
...
...
@@ -68,7 +66,7 @@ def getFormItemList():\n
return result\n
\n
getFormItemList = CachingMethod(getFormItemList, \n
id=(\'Ticket_getFormItemList\', context.Localizer.get_selected_language()),
\n
id=(\'Ticket_getFormItemList\', context.Localizer.get_selected_language()),\n
cache_factory=\'erp5_ui_long\')\n
\n
return getFormItemList()\n
...
...
bt5/erp5_crm/bt/revision
View file @
f9c452fb
631
\ No newline at end of file
632
\ 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