Commit 1f744b05 authored by Łukasz Nowak's avatar Łukasz Nowak

Migrate not confirmed Sale Orders.

parent 26aaff3d
......@@ -52,7 +52,7 @@
<key> <string>_body</string> </key>
<value> <string>context.getPortalObject().portal_catalog.searchAndActivate(\n
portal_type=\'Sale Order\',\n
simulation_state=\'ordered\',\n
simulation_state=\'!= confirmed\',\n
method_id=\'SaleOrder_removeAppliedRuleOnOrdered\'\n
)\n
</string> </value>
......
......@@ -52,8 +52,8 @@
<key> <string>_body</string> </key>
<value> <string>if context.getPortalType() != \'Sale Order\':\n
raise TypeError(\'%r is not Sale Order\' % context.getPath())\n
if context.getSimulationState() != \'ordered\':\n
raise TypeError(\'%r is not ordered\' % context.getPath())\n
if context.getSimulationState() == \'confirmed\':\n
raise TypeError(\'%r is confirmed\' % context.getPath())\n
\n
for applied_rule in context.getPortalObject().portal_catalog(\n
portal_type=\'Applied Rule\',\n
......
84
\ No newline at end of file
85
\ 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