Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
063dc745
Commit
063dc745
authored
Aug 18, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Create new objects instead of using template_path_list
parent
da425367
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+20
-1
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
063dc745
...
...
@@ -827,7 +827,26 @@ class TemplateTool (BaseTool):
# XXX: Add layer=1 and sign=1 for default for all paths
template_path_list
=
[
l
+
' | 1 | 1'
for
l
in
template_path_list
]
migrated_bm
.
setProperty
(
'template_path_list'
,
template_path_list
)
# Create new sub-objects instead based on template_path_list
for
path
in
template_path_list
:
path_list
=
path
.
split
(
' | '
)
# Create Business Property Item for objects with property in path
if
'#'
in
path_list
[
0
]:
migrated_bm
.
newContent
(
portal_type
=
'Business Property Item'
,
item_path
=
path_list
[
0
],
item_sign
=
path_list
[
1
],
item_layer
=
path_list
[
2
],
)
else
:
migrated_bm
.
newContent
(
portal_type
=
'Business Item'
,
item_path
=
path_list
[
0
],
item_sign
=
path_list
[
1
],
item_layer
=
path_list
[
2
],
)
kw
[
'removable_property'
]
=
removable_property
kw
[
'removable_sub_object_path'
]
=
removable_sub_object_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