Commit f59e8bc7 authored by Romain Courteaud's avatar Romain Courteaud

Keep compatibility with previous implementation.

Do not generate applied related to Production Packing List and Production Report (even if it has to be improve in the futur)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16847 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 903a34e4
...@@ -83,6 +83,9 @@ applied_rule_dict = {\n ...@@ -83,6 +83,9 @@ applied_rule_dict = {\n
\'Sale Order\': \'default_order_rule\',\n \'Sale Order\': \'default_order_rule\',\n
\'Sale Packing List\': \'default_delivery_rule\',\n \'Sale Packing List\': \'default_delivery_rule\',\n
\'Sale Invoice Transaction\': \'default_invoice_rule\',\n \'Sale Invoice Transaction\': \'default_invoice_rule\',\n
\n
\'Production Packing List\': None,\n
\'Production Report\': None,\n
}\n }\n
\n \n
marker = []\n marker = []\n
...@@ -90,8 +93,9 @@ applied_rule = applied_rule_dict.get(delivery_type, marker)\n ...@@ -90,8 +93,9 @@ applied_rule = applied_rule_dict.get(delivery_type, marker)\n
\n \n
if applied_rule is marker:\n if applied_rule is marker:\n
raise "SimulationError", "No rule defined for %s, see Delivery_updateAppliedRule python script" % delivery_type\n raise "SimulationError", "No rule defined for %s, see Delivery_updateAppliedRule python script" % delivery_type\n
\n elif applied_rule is None:\n
if applied_rule:\n pass \n
elif applied_rule:\n
delivery.updateAppliedRule(rule_id=applied_rule, **kw)\n delivery.updateAppliedRule(rule_id=applied_rule, **kw)\n
</string> </value> </string> </value>
</item> </item>
...@@ -146,6 +150,7 @@ if applied_rule:\n ...@@ -146,6 +150,7 @@ if applied_rule:\n
<string>delivery</string> <string>delivery</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>delivery_type</string> <string>delivery_type</string>
<string>None</string>
<string>applied_rule_dict</string> <string>applied_rule_dict</string>
<string>marker</string> <string>marker</string>
<string>applied_rule</string> <string>applied_rule</string>
......
501 502
\ No newline at end of file \ No newline at end of file
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