Commit 11559e07 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki
Browse files

* state_change.object -> state_change[\'object\']

* state_change.transition -> state_change[\'transition\']


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent abf7d80a
......@@ -70,7 +70,7 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
object = state_change.object\n
object = state_change[\'object\']\n
\n
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
result_list = object.DeliveryPatch_validateContent()\n
......
6
\ No newline at end of file
7
\ No newline at end of file
......@@ -72,7 +72,7 @@
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
\n
closing_period = state_change.object\n
closing_period = state_change[\'object\']\n
portal = closing_period.getPortalObject()\n
N_ = portal.Base_translateString\n
valid_states = [\'planned\', \'confirmed\', \'delivered\']\n
......
......@@ -72,7 +72,7 @@
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
\n
closing_period = state_change.object\n
closing_period = state_change[\'object\']\n
portal = closing_period.getPortalObject()\n
N_ = portal.Base_translateString\n
accounting_module = portal.accounting_module\n
......
......@@ -72,7 +72,7 @@
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
\n
closing_period = state_change.object\n
closing_period = state_change[\'object\']\n
portal = closing_period.getPortalObject()\n
N_ = portal.Base_translateString\n
accounting_module = portal.accounting_module\n
......
......@@ -69,7 +69,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string># Purchase Invoice Transaction or Sale Invoice Transaction.\n
transaction = state_change.object\n
transaction = state_change[\'object\']\n
\n
# Get sections.\n
source_section = transaction.getSourceSection()\n
......
......@@ -73,7 +73,7 @@
error_message = \'\'\n
\n
# Balance Transaction.\n
transaction = state_change.object\n
transaction = state_change[\'object\']\n
module = transaction.getParentValue()\n
\n
# Get sections and a currency.\n
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>packing_list = state_change.object\n
<value> <string>packing_list = state_change[\'object\']\n
\n
# Create Delivery Applied Rule (if required)\n
packing_list.updateAppliedRule(\'default_invoice_rule\')\n
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>packing_list = state_change.object\n
<value> <string>packing_list = state_change[\'object\']\n
\n
# Create Delivery Applied Rule (if required)\n
packing_list.updateAppliedRule(\'default_invoice_rule\')\n
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context = state_change.object\n
<value> <string>context = state_change[\'object\']\n
context.activate().updateCausalityState()\n
</string> </value>
</item>
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>packing_list = state_change.object\n
<value> <string>packing_list = state_change[\'object\']\n
\n
stop_date = state_change.kwargs[\'stop_date\']\n
start_date = state_change.kwargs[\'start_date\']\n
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>packing_list = state_change.object\n
<value> <string>packing_list = state_change[\'object\']\n
\n
stop_date = state_change.kwargs[\'stop_date\']\n
start_date = state_change.kwargs[\'start_date\']\n
......
......@@ -77,7 +77,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:state_change.kwargs.get(\'start_date\',state_change.object.getStartDate())</string> </value>
<value> <string>python:state_change.kwargs.get(\'start_date\',state_change[\'object\'].getStartDate())</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -77,7 +77,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:state_change.kwargs.get(\'stop_date\',state_change.object.getStopDate())</string> </value>
<value> <string>python:state_change.kwargs.get(\'stop_date\',state_change[\'object\'].getStopDate())</string> </value>
</item>
</dictionary>
</pickle>
......
354
\ No newline at end of file
355
\ No newline at end of file
......@@ -71,7 +71,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: state_change.object.getPortalType()</string> </value>
<value> <string>python: state_change[\'object\'].getPortalType()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -71,7 +71,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: state_change.object.getPortalType()</string> </value>
<value> <string>python: state_change[\'object\'].getPortalType()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -71,7 +71,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: state_change.object.getPortalType()</string> </value>
<value> <string>python: state_change[\'object\'].getPortalType()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -71,7 +71,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python: state_change.object.getPortalType()</string> </value>
<value> <string>python: state_change[\'object\'].getPortalType()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>transaction = state_change.object\n
<value> <string>transaction = state_change[\'object\']\n
\n
# Check getBaobabSource and getBaobabDestination\n
transaction.Base_checkBaobabSourceAndDestination()\n
......
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