Commit 6d95b4c6 authored by Łukasz Nowak's avatar Łukasz Nowak

Set destination decision too.

parent fdeceab8
...@@ -40,6 +40,7 @@ def OpenSaleOrderLine_migrate(self): ...@@ -40,6 +40,7 @@ def OpenSaleOrderLine_migrate(self):
self.setSource('organisation_module/vifib_internet') self.setSource('organisation_module/vifib_internet')
self.setDestination(self.getParentValue().getDestinationSection()) self.setDestination(self.getParentValue().getDestinationSection())
self.setDestinationSection(self.getParentValue().getDestinationSection()) self.setDestinationSection(self.getParentValue().getDestinationSection())
self.setDestinationDecision(self.getParentValue().getDestinationDecision())
self.setPriceCurrency('currency_module/EUR') self.setPriceCurrency('currency_module/EUR')
@WorkflowMethod.disable @WorkflowMethod.disable
......
...@@ -59,6 +59,8 @@ sale_order = context.getParentValue()\n ...@@ -59,6 +59,8 @@ sale_order = context.getParentValue()\n
specialise = sale_order.getSpecialise()\n specialise = sale_order.getSpecialise()\n
if common_specialise != specialise:\n if common_specialise != specialise:\n
sale_order.setSpecialise(common_specialise)\n sale_order.setSpecialise(common_specialise)\n
if sale_order.getDestinationDecision() != sale_order.getDestinationSection():\n
sale_order.setDestinationDecision(sale_order.getDestinationSection())\n
price_currency = \'currency_module/EUR\'\n price_currency = \'currency_module/EUR\'\n
if sale_order.getPriceCurrency() != price_currency:\n if sale_order.getPriceCurrency() != price_currency:\n
sale_order.setPriceCurrency(price_currency)\n sale_order.setPriceCurrency(price_currency)\n
......
...@@ -72,6 +72,8 @@ context.setSource(sale_order.getSource())\n ...@@ -72,6 +72,8 @@ context.setSource(sale_order.getSource())\n
context.setDestination(sale_order.getDestination())\n context.setDestination(sale_order.getDestination())\n
context.setSourceSection(sale_order.getSourceSection())\n context.setSourceSection(sale_order.getSourceSection())\n
context.setDestinationSection(sale_order.getDestinationSection())\n context.setDestinationSection(sale_order.getDestinationSection())\n
context.setSourceDecision(sale_order.getSourceDecision())\n
context.setDestinationDecision(sale_order.getDestinationDecision())\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
67 68
\ 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