Commit 1f6ff692 authored by Łukasz Nowak's avatar Łukasz Nowak

Disable interaction in the whole migration.

parent 384c08de
...@@ -91,6 +91,7 @@ def fixSaleOrder(slap_document): ...@@ -91,6 +91,7 @@ def fixSaleOrder(slap_document):
sale_packing_list.getParentValue().deleteContent(sale_packing_list.getId()) sale_packing_list.getParentValue().deleteContent(sale_packing_list.getId())
return new_sale_order.contentValues(portal_type='Sale Order Line')[0] return new_sale_order.contentValues(portal_type='Sale Order Line')[0]
@WorkflowMethod.disable
def SlapDocument_migrateSlapState(self): def SlapDocument_migrateSlapState(self):
from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery
...@@ -149,10 +150,7 @@ def SlapDocument_migrateSlapState(self): ...@@ -149,10 +150,7 @@ def SlapDocument_migrateSlapState(self):
assert(slap_document.getDestinationSection() == explanation_delivery_line.getDestinationSectionValue().getRelativeUrl()) assert(slap_document.getDestinationSection() == explanation_delivery_line.getDestinationSectionValue().getRelativeUrl())
else: else:
hosting_subscription = explanation_delivery_line.getAggregateValue(portal_type='Hosting Subscription') hosting_subscription = explanation_delivery_line.getAggregateValue(portal_type='Hosting Subscription')
@WorkflowMethod.disable slap_document.edit(
def edit(slap_document, **kw):
slap_document.edit(**kw)
edit(slap_document,
specialise_value=hosting_subscription, specialise_value=hosting_subscription,
root_software_release_url=explanation_delivery_line.getAggregateValue(portal_type='Software Release').getUrlString() root_software_release_url=explanation_delivery_line.getAggregateValue(portal_type='Software Release').getUrlString()
) )
......
111 112
\ 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