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
ab0f2031
Commit
ab0f2031
authored
Sep 22, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: No need to give different id to different portal_types
parent
dc86ddf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+3
-8
No files found.
product/ERP5/Document/BusinessManager.py
View file @
ab0f2031
...
...
@@ -1194,24 +1194,19 @@ class BusinessPatchItem(XMLObject):
item_path
=
item_path
,
item_layer
=
item_layer
,
item_sign
=
item_sign
,
id
=
'new_
property_
item'
)
id
=
'new_item'
)
new_prop_item
.
build
(
self
)
# ID to be used for old item copied from dependency_list
updated_id
=
'old_property_item'
else
:
# Create new_item and build it from ZODB
new_item
=
self
.
newContent
(
portal_type
=
'Business Item'
,
item_path
=
item_path
,
item_layer
=
item_layer
,
item_sign
=
item_sign
,
id
=
'new_
path_
item'
)
id
=
'new_item'
)
new_item
.
build
(
self
)
# ID to be used for old item copied from dependency_list
updated_id
=
'old_path_item'
updated_id
=
'old_item'
# Copy old item/property item from the item at similar path in dependency_bm
dependency_item
=
dependency_bm
.
getBusinessItemByPath
(
item_path
)
cp_data
=
dependency_bm
.
manage_copyObjects
([
dependency_bm
.
getId
()])
...
...
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