Commit 00d5f022 authored by Julien Muchembled's avatar Julien Muchembled

erp5_trade: fix packing list being stuck in draft causality state

This partially reverts commit a60dd069
("Fix a few places that could create duplicate root applied rules").
parent 5d552ce8
......@@ -50,7 +50,15 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>state_change[\'object\'].Delivery_updateSimulation()\n
<value> <string>delivery = state_change[\'object\']\n
delivery.Delivery_updateSimulation()\n
\n
if delivery.getCausalityState() == \'draft\':\n
delivery.startBuilding()\n
path = delivery.getPath()\n
delivery.activate(\n
after_tag = (path + \'_calculate\', path + \'_updateAppliedRule\'),\n
).updateCausalityState()\n
</string> </value>
</item>
<item>
......
1151
\ No newline at end of file
1152
\ 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