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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
e1394fc6
Commit
e1394fc6
authored
Jan 15, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve rest to restore object to original.
parent
b572c50c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
product/ERP5Configurator/Document/BusinessConfiguration.py
product/ERP5Configurator/Document/BusinessConfiguration.py
+7
-2
No files found.
product/ERP5Configurator/Document/BusinessConfiguration.py
View file @
e1394fc6
...
...
@@ -392,7 +392,12 @@ class BusinessConfiguration(Item):
for
obj
in
self
.
contentValues
(
filter
=
{
'portal_type'
:
[
'Configuration Save'
]}):
object_ids
.
append
(
obj
.
getId
())
self
.
manage_delObjects
(
object_ids
)
if
getattr
(
self
,
"workflow_history"
,
None
)
is
not
None
:
del
self
.
workflow_history
if
getattr
(
self
,
"_global_configuration_attributes"
,
None
)
is
not
None
:
del
self
.
_global_configuration_attributes
if
getattr
(
self
,
"_multi_entry_transitions"
,
None
)
is
not
None
:
del
self
.
_multi_entry_transitions
self
.
setSpecialiseValue
(
None
)
# ERP5 Workflow initialization
erp5_workflow
=
self
.
getResourceValue
()
erp5_workflow
.
initializeDocument
(
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