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
e734002d
Commit
e734002d
authored
Aug 29, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Explicitly add property_type for type_workflow property while installing BPI
parent
4e17e114
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+16
-0
No files found.
product/ERP5/Document/BusinessManager.py
View file @
e734002d
...
...
@@ -952,6 +952,22 @@ class BusinessPropertyItem(XMLObject):
# the accessor
if
property_name
.
endswith
(
'_list'
):
property_name
=
property_name
[:
-
5
]
# XXX: Explicit addition of property_type for 'type_workflow' property on
# 'ERP5Type' objects. This is required as we have created an explicit
# property outside of property sheet for ERP5Type objects, but at the same
# time, the object(s) also have property sheet for them. Since, there is no
# functions like _setProperty, hasProperty, etc to combine both of them
# we have to end up using explicit mention of 'list' property_value here
# 1. Other option can be to override hasProperty or _setProperty for ERP5Type
# object and write it so that it can handle both _properties attribute as
# well as accessor holders generated from property sheet(s).
# 2. After that we can use hasProperty here for objects to check their
# property_type and then just use the generic '_setProperty' function.
# XXX: For now, we just put this explicitly/hard-code
if
property_name
==
'type_workflow'
:
property_type
=
'multiple selection'
if
int
(
self
.
getProperty
(
'item_sign'
))
==
1
:
obj
.
_setProperty
(
property_name
,
property_value
,
property_type
)
...
...
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