Commit 8ec82e6a authored by Łukasz Nowak's avatar Łukasz Nowak

Do not fail in case if movement is None.

parent 55827eff
......@@ -51,6 +51,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>def getRelatedTradeConditionList(trade_condition):\n
if trade_condition is None:\n
return []\n
related_trade_condition_list = trade_condition.getSpecialiseValueList(\n
portal_type=(\'Sale Trade Condition\', \'Purchase Trade Condition\'))\n
for related_trade_condition in trade_condition.getSpecialiseValueList(\n
......
138
\ No newline at end of file
139
\ 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