Commit a5983685 authored by Łukasz Nowak's avatar Łukasz Nowak

Drop update during linking.

It will be done later anyway.
Fix typo.
parent 25211f61
......@@ -66,17 +66,12 @@ assert(applied_rule.getSpecialiseValue().getReference() == \'default_delivering_
delivery_simulation_list = applied_rule.searchFolder()\n
assert(len(delivery_simulation_list) == 1)\n
delivery_simulation = delivery_simulation_list[0]\n
packing_list_line = packing_list_line.getRelativeUrl()\n
if delivery_simulation.getDelivery() == packing_list_line:\n
packing_list_line_url = packing_list_line.getRelativeUrl()\n
if delivery_simulation.getDelivery() == packing_list_line_url:\n
# already setup, nothing to do\n
return\n
assert(delivery_simulation.getDelivery() is None)\n
delivery_simulation.setDelivery(packing_list_line)\n
delivery = packing_list_line.getParentValue()\n
common_specialise = \'sale_trade_condition_module/vifib_trade_condition\'\n
specialise = delivery.getSpecialise()\n
if common_specialise != specialise:\n
delivery.setSpecialise(common_specialise)\n
delivery_simulation.setDelivery(packing_list_line_url)\n
</string> </value>
</item>
<item>
......
41
\ No newline at end of file
42
\ 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