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

Fix and protect.

parent aabb083d
......@@ -8,7 +8,7 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
specialise = self.getParentValue().getSpecialise()
if common_specialise != specialise:
self.getParentValue().setSpecialise(common_specialise)
self.SalePackingList_setArrow()
self.getParentValue().SalePackingList_setArrow()
self.setPrice(0.0)
if self.getSimulationState() == 'cancelled':
# force no simulation
......
......@@ -50,7 +50,8 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>source, destination, source_section, destination_section = context.getSource(), context.getDestination(), context.getSourceSection(), context.getDestinationSection()\n
<value> <string>assert context.getPortalType() in context.getPortalDeliveryTypeList()\n
source, destination, source_section, destination_section = context.getSource(), context.getDestination(), context.getSourceSection(), context.getDestinationSection()\n
\n
if not(source is None and destination is None and source_section is None and destination_section is None):\n
# nothing to do\n
......
46
\ No newline at end of file
47
\ 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