Commit 652b0787 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

erp5_workflow: add view elements to allow workflow script to generate id from reference.

parent b8ac76b8
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
<value> <value>
<list> <list>
<string>my_id</string> <string>my_id</string>
<string>my_reference</string>
<string>my_title</string> <string>my_title</string>
<string>my_callable_type</string> <string>my_callable_type</string>
<string>my_parameter_signature</string> <string>my_parameter_signature</string>
......
...@@ -35,15 +35,15 @@ ...@@ -35,15 +35,15 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -54,15 +54,15 @@ ...@@ -54,15 +54,15 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -74,23 +74,25 @@ ...@@ -74,23 +74,25 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>extra_context</string> </key>
<value> <string>my_string_field</string> </value> <value>
<list/>
</value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>my_title</string> </value>
</item> </item>
<item> <item>
<key> <string>target</string> </key> <key> <string>form_id</string> </key>
<value> <string>Click to edit the target</string> </value> <value> <string>BaseWorkflow_FieldLibrary</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Reference</string> </value> <value> <string>ID</string> </value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>my_reference</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_view_mode_reference_as_name</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -109,6 +109,10 @@ ...@@ -109,6 +109,10 @@
<list> <list>
<tuple> <tuple>
<string>id</string> <string>id</string>
<string>ID</string>
</tuple>
<tuple>
<string>reference</string>
<string>Reference</string> <string>Reference</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -186,6 +190,10 @@ ...@@ -186,6 +190,10 @@
<string>id</string> <string>id</string>
<string>WorkflowScript_getListBoxURL</string> <string>WorkflowScript_getListBoxURL</string>
</tuple> </tuple>
<tuple>
<string>reference</string>
<string>WorkflowScript_getListBoxURL</string>
</tuple>
<tuple> <tuple>
<string>title</string> <string>title</string>
<string>WorkflowScript_getListBoxURL</string> <string>WorkflowScript_getListBoxURL</string>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment