Commit fb961e71 authored by Aurel's avatar Aurel

mutilted banknote can also deal with maculated banknote

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10816 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64673b29
...@@ -68,7 +68,14 @@ ...@@ -68,7 +68,14 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return "%s/surface/caisse_courante/billets_mutiles" %(context.getSource(),)\n <value> <string># if sent to headquarter, line must not exist\n
if not \'siege\' in context.getSource():\n
# if we sent to headquarter, we have order the document at one time\n
for workflow_item in context.Base_getWorkflowHistoryItemList(\'mutilated_banknote_workflow\',display=0):\n
if workflow_item.getProperty(\'action\')==\'order_action\':\n
return None\n
\n
return contex.getDestination()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -127,6 +134,10 @@ ...@@ -127,6 +134,10 @@
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>_getiter_</string>
<string>workflow_item</string>
<string>None</string>
<string>contex</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
<value> <value>
<list> <list>
<string>my_source_reference</string> <string>my_source_reference</string>
<string>my_destination</string>
<string>my_source_decision_title</string> <string>my_source_decision_title</string>
<string>my_source_total_asset_price</string> <string>my_source_total_asset_price</string>
<string>my_destination_total_asset_price</string> <string>my_destination_total_asset_price</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