Commit fe603477 authored by Jérome Perrin's avatar Jérome Perrin

Don't update tax lines if we are curently in the process of solving a...

Don't update tax lines if we are curently in the process of solving a divergence. User cannot modify lines, and also this may change the current divergence

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25513 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9aab8f6
...@@ -55,7 +55,9 @@ ...@@ -55,7 +55,9 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>movement = state_change[\'object\']\n <value> <string>movement = state_change[\'object\']\n
delivery = movement.getExplanationValue()\n delivery = movement.getExplanationValue()\n
delivery.Delivery_updateTaxLineList()\n # if we are already solving a divergence, don\'t update\n
if delivery.getProperty(\'causality_state\') not in (\'solving\',):\n
delivery.Delivery_updateTaxLineList()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
591 592
\ 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