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
d15e9d4e
Commit
d15e9d4e
authored
Sep 27, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: show more related proxy fields
parent
25e0fd0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
product/ERP5Form/Form.py
product/ERP5Form/Form.py
+8
-7
No files found.
product/ERP5Form/Form.py
View file @
d15e9d4e
...
...
@@ -850,7 +850,8 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
skins_tool
=
self
.
portal_skins
folder_id
=
self
.
aq_parent
.
id
for
skin_folder_id
in
self
.
getSimilarSkinFolderIdList
():
# for skin_folder_id in self.getSimilarSkinFolderIdList():
for
skin_folder_id
in
self
.
getPortalObject
().
portal_skins
.
objectIds
():
iterate
(
getattr
(
skins_tool
,
skin_folder_id
))
iterate
(
skins_tool
.
erp5_core
)
return
form_list
...
...
@@ -1017,11 +1018,10 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
form_id
=
self
.
id
proxy_dict
=
{}
for
document
in
self
.
objectValues
():
if
document
.
meta_type
==
'ProxyField'
:
short_path
=
"%s.%s"
%
(
form_id
,
document
.
id
)
proxy_dict
[
short_path
]
=
{
'proxy'
:
document
,
'short_path'
:
short_path
,
'related_proxy_list'
:
[]}
short_path
=
"%s.%s"
%
(
form_id
,
document
.
id
)
proxy_dict
[
short_path
]
=
{
'proxy'
:
document
,
'short_path'
:
short_path
,
'related_proxy_list'
:
[]}
def
iterate
(
document
):
for
i
in
document
.
objectValues
():
if
i
.
meta_type
==
'ERP5 Form'
:
...
...
@@ -1040,7 +1040,8 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
skins_tool
=
self
.
portal_skins
proxy_dict_list
=
[]
if
len
(
proxy_dict
):
for
skin_folder_id
in
self
.
getSimilarSkinFolderIdList
():
# for skin_folder_id in self.getSimilarSkinFolderIdList():
for
skin_folder_id
in
self
.
getPortalObject
().
portal_skins
.
objectIds
():
iterate
(
getattr
(
skins_tool
,
skin_folder_id
))
proxy_dict_list
=
proxy_dict
.
values
()
proxy_dict_list
.
sort
(
key
=
lambda
x
:
x
[
'short_path'
])
...
...
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