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
Labels
Merge Requests
143
Merge Requests
143
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
e0c4ba37
Commit
e0c4ba37
authored
Mar 07, 2024
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
May 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: py3
parent
8d89c5d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
product/ERP5Form/Form.py
product/ERP5Form/Form.py
+2
-3
No files found.
product/ERP5Form/Form.py
View file @
e0c4ba37
...
@@ -925,7 +925,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
...
@@ -925,7 +925,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
for
data
in
i
[
'field_list'
]:
for
data
in
i
[
'field_list'
]:
tmp
=
[]
tmp
=
[]
matched_rate
=
match
(
data
)
matched_rate
=
match
(
data
)
if
matched_rate
>
0
:
if
matched_rate
is
not
None
and
matched_rate
>
0
:
form_path
=
i
[
'form_path'
]
form_path
=
i
[
'form_path'
]
form_id
=
i
[
'form_id'
]
form_id
=
i
[
'form_id'
]
field_type
=
data
[
'field_type'
]
field_type
=
data
[
'field_type'
]
...
@@ -994,8 +994,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
...
@@ -994,8 +994,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
# for skin_folder_id in self.getSimilarSkinFolderIdList():
# for skin_folder_id in self.getSimilarSkinFolderIdList():
for
skin_folder_id
in
self
.
getPortalObject
().
portal_skins
.
objectIds
():
for
skin_folder_id
in
self
.
getPortalObject
().
portal_skins
.
objectIds
():
iterate
(
getattr
(
skins_tool
,
skin_folder_id
))
iterate
(
getattr
(
skins_tool
,
skin_folder_id
))
proxy_dict_list
=
proxy_dict
.
values
()
proxy_dict_list
=
sorted
(
proxy_dict
.
values
(),
key
=
lambda
x
:
x
[
'short_path'
])
proxy_dict_list
.
sort
(
key
=
lambda
x
:
x
[
'short_path'
])
for
item
in
proxy_dict_list
:
for
item
in
proxy_dict_list
:
item
[
'related_proxy_list'
].
sort
(
key
=
lambda
x
:
x
[
'short_path'
])
item
[
'related_proxy_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