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
Paul Graydon
erp5
Commits
b99c9ba7
Commit
b99c9ba7
authored
Aug 19, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort catalog properties during BT installation
parent
c9f102d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+3
-5
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
b99c9ba7
...
...
@@ -4266,11 +4266,9 @@ class CatalogKeyTemplateItemBase(BaseTemplateItem):
setattr
(
catalog
,
self
.
key_list_attr
,
catalog_key_list
)
def
_getUpdatedCatalogKeyList
(
self
,
catalog_key_list
,
new_key_list
):
catalog_key_list
=
list
(
catalog_key_list
)
# copy
for
key
in
new_key_list
:
if
key
not
in
catalog_key_list
:
catalog_key_list
.
append
(
key
)
return
catalog_key_list
catalog_key_set
=
set
(
catalog_key_list
)
# copy
catalog_key_set
.
update
(
new_key_list
)
return
sorted
(
catalog_key_set
)
def
uninstall
(
self
,
context
,
**
kw
):
catalog
=
_getCatalogValue
(
self
)
...
...
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