Commit a038af6d authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Alain Takoudjou

Optimisation.

Avoid calling isDivergent which can take few minutes to finish.

causality_state comes from well designed causality workflow, which informs
enough about delivery state. Fetching causality_state property is extremely
fast.

Conflicts:
	bt5/erp5_accounting/bt/revision
parent 4ec30734
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python: here.getProperty(\'causality_state\', \'default\') != \'building\' and not here.isDivergent()</string> </value> <value> <string>python: here.getProperty(\'causality_state\', \'default\') == \'solved\'</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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