Commit 19a4d569 authored by Łukasz Nowak's avatar Łukasz Nowak

Migrate destination too.

Fix condition name.
parent 0656ef7d
......@@ -26,13 +26,15 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
@WorkflowMethod.disable
def OpenSaleOrder_migrate(self):
if self.getSpecialise() != 'sale_trade_condition_module/vifib_simple_trade_condition':
self.setSpecialise('sale_trade_condition_module/vifib_trade_simple_condition')
self.setSpecialise('sale_trade_condition_module/vifib_simple_trade_condition')
destination = self.getDestination() or self.getDestinationDecision() or self.getDestinationSection()
assert destination is not None
if self.getDestinationDecision() != destination:
self.setDestinationDecision(destination)
if self.getDestinationSection() != destination:
self.setDestinationSection(destination)
if self.getDestination() != destination:
self.setDestination(destination)
if self.getSource() != 'organisation_module/vifib_internet':
self.setSource('organisation_module/vifib_internet')
if self.getSourceSection() != 'organisation_module/vifib_internet':
......
72
\ No newline at end of file
73
\ 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