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
e80e7a6d
Commit
e80e7a6d
authored
Sep 22, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add function to get old and new value from BusinessPatchItem
parent
ab0f2031
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+12
-5
No files found.
product/ERP5/Document/BusinessManager.py
View file @
e80e7a6d
...
@@ -1220,16 +1220,23 @@ class BusinessPatchItem(XMLObject):
...
@@ -1220,16 +1220,23 @@ class BusinessPatchItem(XMLObject):
def
getOldValue
(
self
):
def
getOldValue
(
self
):
"""
"""
Returns old value f
rom the old BM
Returns old value f
or the BusinessPatchItem
"""
"""
pass
old_item
=
self
.
_getOb
(
'old_item'
)[
0
]
if
old_item
.
getPortalType
()
==
'Business Item'
:
return
old_item
.
objectValues
()
else
:
return
old_item
.
getProperty
(
'item_property_value'
)
def
getNewValue
(
self
,
build
=
False
):
def
getNewValue
(
self
,
build
=
False
):
"""
"""
Returns new value from the new BM
Returns new value for the given BusinessPatchItem
If build=True, then rebuild the concerned path_item or property_item
"""
"""
pass
old_item
=
self
.
_getOb
(
'new_item'
)
if
old_item
.
getPortalType
()
==
'Business Item'
:
return
old_item
.
objectValues
()[
0
]
else
:
return
old_item
.
getProperty
(
'item_property_value'
)
def
registerSkinFolder
(
skin_tool
,
skin_folder
):
def
registerSkinFolder
(
skin_tool
,
skin_folder
):
request
=
skin_tool
.
REQUEST
request
=
skin_tool
.
REQUEST
...
...
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