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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
ac9fc63b
Commit
ac9fc63b
authored
Aug 08, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: remove storage id in properties from Interaction property sheet
parent
e9c783ba
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
14 deletions
+26
-14
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/portal_type_filter_property.xml
...operty_sheets/Interaction/portal_type_filter_property.xml
+3
-1
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/portal_type_group_filter_property.xml
..._sheets/Interaction/portal_type_group_filter_property.xml
+3
-1
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/temporary_document_disallowed_property.xml
...ts/Interaction/temporary_document_disallowed_property.xml
+3
-1
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/trigger_method_id_property.xml
...roperty_sheets/Interaction/trigger_method_id_property.xml
+3
-1
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/trigger_once_per_transaction_property.xml
...ets/Interaction/trigger_once_per_transaction_property.xml
+3
-1
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/trigger_type_property.xml
...tal_property_sheets/Interaction/trigger_type_property.xml
+3
-1
product/ERP5Workflow/Document/Interaction.py
product/ERP5Workflow/Document/Interaction.py
+1
-1
product/ERP5Workflow/Document/InteractionWorkflow.py
product/ERP5Workflow/Document/InteractionWorkflow.py
+7
-7
No files found.
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/portal_type_filter_property.xml
View file @
ac9fc63b
...
...
@@ -34,7 +34,9 @@
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<string>
portal_type_filter
</string>
</value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/portal_type_group_filter_property.xml
View file @
ac9fc63b
...
...
@@ -34,7 +34,9 @@
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<string>
portal_type_group_filter
</string>
</value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/temporary_document_disallowed_property.xml
View file @
ac9fc63b
...
...
@@ -30,7 +30,9 @@
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<string>
temporary_document_disallowed
</string>
</value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/trigger_method_id_property.xml
View file @
ac9fc63b
...
...
@@ -34,7 +34,9 @@
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<string>
method_id
</string>
</value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/trigger_once_per_transaction_property.xml
View file @
ac9fc63b
...
...
@@ -30,7 +30,9 @@
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<string>
once_per_transaction
</string>
</value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
...
...
product/ERP5/bootstrap/erp5_property_sheets/PropertySheetTemplateItem/portal_property_sheets/Interaction/trigger_type_property.xml
View file @
ac9fc63b
...
...
@@ -30,7 +30,9 @@
</item>
<item>
<key>
<string>
storage_id
</string>
</key>
<value>
<string>
trigger_type
</string>
</value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
...
...
product/ERP5Workflow/Document/Interaction.py
View file @
ac9fc63b
...
...
@@ -61,7 +61,7 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject):
trigger_type
=
TRIGGER_WORKFLOW_METHOD
portal_type_filter
=
None
portal_type_group_filter
=
None
once_per_transaction
=
False
trigger_
once_per_transaction
=
False
temporary_document_disallowed
=
False
var_exprs
=
None
# A mapping.
guard
=
None
...
...
product/ERP5Workflow/Document/InteractionWorkflow.py
View file @
ac9fc63b
...
...
@@ -407,8 +407,8 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
interaction_list
=
self
.
objectValues
(
portal_type
=
'Interaction'
)
interaction_prop_id_to_show
=
sorted
([
'actbox_category'
,
'actbox_url'
,
'actbox_name'
,
'activate_script_name'
,
'after_script_name'
,
'before_commit_script_name'
,
'description'
,
'groups'
,
'roles'
,
'expr'
,
'permissions'
,
'method_id'
,
'once_per_transaction'
,
'portal_type_filter'
,
'portal_type_group_filter'
,
'description'
,
'groups'
,
'roles'
,
'expr'
,
'permissions'
,
'
trigger_
method_id'
,
'
trigger_
once_per_transaction'
,
'portal_type_filter'
,
'portal_type_group_filter'
,
'script_name'
,
'temporary_document_disallowed'
,
'trigger_type'
])
for
tdef
in
interaction_list
:
interaction_reference_list
.
append
(
tdef
.
getReference
())
...
...
@@ -436,14 +436,14 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
elif
property_id
in
[
'actbox_name'
,
'actbox_url'
,
'actbox_category'
,
'trigger_type'
]:
property_value
=
getattr
(
tdef
,
property_id
,
None
)
sub_object
=
SubElement
(
interaction
,
property_id
,
attrib
=
dict
(
type
=
'string'
))
elif
property_id
in
[
'activate_script_name'
,
'after_script_name'
,
'before_commit_script_name'
,
'method_id'
,
'once_per_transaction'
,
'portal_type_filter'
,
'portal_type_group_filter'
,
'script_name'
,
'temporary_document_disallowed'
]:
elif
property_id
in
[
'activate_script_name'
,
'after_script_name'
,
'before_commit_script_name'
,
'portal_type_filter'
,
'portal_type_group_filter'
,
'script_name'
,
'temporary_document_disallowed'
]:
if
property_id
==
'activate_script_name'
:
prop_id
=
'activate_script_name_list'
if
property_id
==
'after_script_name'
:
prop_id
=
'after_script_name_list'
if
property_id
==
'before_commit_script_name'
:
prop_id
=
'before_commit_script_name_list'
if
property_id
==
'method_id'
:
prop_id
=
'trigger_method_id_list'
if
property_id
==
'once_per_transaction'
:
prop_id
=
'trigger_once_per_transaction'
if
property_id
==
'trigger_method_id'
:
prop_id
=
'trigger_method_id_list'
if
property_id
==
'portal_type_filter'
:
prop_id
=
'portal_type_filter_list'
if
property_id
==
'portal_type_group_filter'
:
prop_id
=
'portal_type_group_filter_list'
if
property_id
==
'script_name'
:
prop_id
=
'before_script_name_list'
...
...
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