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
Hardik Juneja
erp5
Commits
82d2bf14
Commit
82d2bf14
authored
Oct 03, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessTemplate: Refactor mistake for modified_object_list assignment
parent
84451d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+2
-2
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
82d2bf14
...
@@ -2753,11 +2753,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
...
@@ -2753,11 +2753,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
if
new_object
!=
old_object
:
if
new_object
!=
old_object
:
modified_object_list
[
path
]
=
'Modified'
,
self
.
getTemplateTypeName
()
modified_object_list
[
path
]
=
'Modified'
,
self
.
getTemplateTypeName
()
else
:
# new object
else
:
# new object
modified_object_list
.
update
[
path
]
=
'New'
,
self
.
getTemplateTypeName
()
modified_object_list
[
path
]
=
'New'
,
self
.
getTemplateTypeName
()
# get removed object
# get removed object
for
path
in
installed_item
.
_objects
:
for
path
in
installed_item
.
_objects
:
if
path
not
in
self
.
_objects
:
if
path
not
in
self
.
_objects
:
modified_object_list
.
update
[
path
]
=
'Removed'
,
self
.
getTemplateTypeName
()
modified_object_list
[
path
]
=
'Removed'
,
self
.
getTemplateTypeName
()
return
modified_object_list
return
modified_object_list
def
_importFile
(
self
,
file_name
,
file
):
def
_importFile
(
self
,
file_name
,
file
):
...
...
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