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

Fix and protect.

parent aabb083d
...@@ -8,7 +8,7 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self): ...@@ -8,7 +8,7 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
specialise = self.getParentValue().getSpecialise() specialise = self.getParentValue().getSpecialise()
if common_specialise != specialise: if common_specialise != specialise:
self.getParentValue().setSpecialise(common_specialise) self.getParentValue().setSpecialise(common_specialise)
self.SalePackingList_setArrow() self.getParentValue().SalePackingList_setArrow()
self.setPrice(0.0) self.setPrice(0.0)
if self.getSimulationState() == 'cancelled': if self.getSimulationState() == 'cancelled':
# force no simulation # force no simulation
......
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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 \n
if not(source is None and destination is None and source_section is None and destination_section is None):\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 # nothing to do\n
......
46 47
\ 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