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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
83752607
Commit
83752607
authored
Jul 14, 2016
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_crm: A category may indicate multiple documents.
parent
e7251ca7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_getArrowItemList.py
...lateItem/portal_skins/erp5_crm/Ticket_getArrowItemList.py
+12
-10
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_getArrowItemList.py
View file @
83752607
portal
=
context
.
getPortalObject
()
arrow
=
portal
.
portal_property_sheets
.
get
(
"Arrow"
)
value_lis
t
=
[(
''
,
''
),]
value_list_append
=
value_lis
t
.
append
resul
t
=
[(
''
,
''
),]
result_append
=
resul
t
.
append
# add current user
user
=
portal
.
ERP5Site_getAuthenticatedMemberPersonValue
()
if
user
is
not
None
:
value_lis
t_append
((
user
.
getTitle
(),
user
.
getRelativeUrl
()))
resul
t_append
((
user
.
getTitle
(),
user
.
getRelativeUrl
()))
for
property_value
in
arrow
.
contentValues
():
value
=
context
.
getProperty
(
"%s_value"
%
property_value
.
getReference
(),
None
)
value_list
=
context
.
getProperty
(
"%s_value_list"
%
property_value
.
getReference
(),
None
)
if
value_list
is
not
None
:
for
value
in
value_list
:
if
value
and
value
.
getPortalType
()
in
portal
.
getPortalNodeTypeList
():
value
=
(
value
.
getTitle
(),
value
.
getRelativeUrl
())
if
value
not
in
value_list
:
value_lis
t_append
(
value
)
resul
t_append
(
value
)
value_lis
t
.
sort
(
key
=
lambda
x
:
x
[
0
])
resul
t
.
sort
(
key
=
lambda
x
:
x
[
0
])
return
value_lis
t
return
resul
t
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