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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
erp5
Commits
06ac4c84
Commit
06ac4c84
authored
Aug 10, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add default for item_layer and item_sign properties
parent
259988e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+4
-5
No files found.
product/ERP5/Document/BusinessManager.py
View file @
06ac4c84
...
@@ -763,7 +763,6 @@ class BusinessItem(XMLObject):
...
@@ -763,7 +763,6 @@ class BusinessItem(XMLObject):
remove_sub_objects
=
kw
.
get
(
'remove_sub_objects'
)
remove_sub_objects
=
kw
.
get
(
'remove_sub_objects'
)
if
remove_sub_objects
:
if
remove_sub_objects
:
removable_property_list
.
append
(
'_tree'
)
removable_property_list
.
append
(
'_tree'
)
obj
=
self
.
removeProperties
(
obj
,
1
,
properties
=
removable_property_list
)
obj
=
self
.
removeProperties
(
obj
,
1
,
properties
=
removable_property_list
)
obj
=
obj
.
__of__
(
context
)
obj
=
obj
.
__of__
(
context
)
# XXX: '_recursiveRemoveUid' is not working as expected
# XXX: '_recursiveRemoveUid' is not working as expected
...
@@ -1023,10 +1022,10 @@ class BusinessItem(XMLObject):
...
@@ -1023,10 +1022,10 @@ class BusinessItem(XMLObject):
return
self
.
getProperty
(
'item_path'
)
return
self
.
getProperty
(
'item_path'
)
def
getBusinessPathSign
(
self
):
def
getBusinessPathSign
(
self
):
return
self
.
getProperty
(
'item_sign'
)
return
self
.
getProperty
(
'item_sign'
,
1
)
def
getBusinessPathLayer
(
self
):
def
getBusinessPathLayer
(
self
):
return
self
.
getProperty
(
'item_layer'
)
return
self
.
getProperty
(
'item_layer'
,
1
)
def
getParentBusinessManager
(
self
):
def
getParentBusinessManager
(
self
):
return
self
.
aq_parent
return
self
.
aq_parent
...
@@ -1125,10 +1124,10 @@ class BusinessPropertyItem(XMLObject):
...
@@ -1125,10 +1124,10 @@ class BusinessPropertyItem(XMLObject):
return
self
.
getProperty
(
'item_path'
)
return
self
.
getProperty
(
'item_path'
)
def
getBusinessPathSign
(
self
):
def
getBusinessPathSign
(
self
):
return
self
.
getProperty
(
'item_sign'
)
return
self
.
getProperty
(
'item_sign'
,
1
)
def
getBusinessPathLayer
(
self
):
def
getBusinessPathLayer
(
self
):
return
self
.
getProperty
(
'item_layer'
)
return
self
.
getProperty
(
'item_layer'
,
1
)
def
getParentBusinessManager
(
self
):
def
getParentBusinessManager
(
self
):
return
self
.
aq_parent
return
self
.
aq_parent
...
...
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