Commit 4b605467 authored by Łukasz Nowak's avatar Łukasz Nowak

Trigger causality state.

Especially in tests not all objects will be visited, which can result in cryptic
test failures.
parent 2198c05d
......@@ -66,6 +66,7 @@ internal_packing_list_module = portal.restrictedTraverse(internal_packing_list_i
internal_packing_list = internal_packing_list_module.newContent(\n
portal_type=\'Internal Packing List\',\n
)\n
internal_packing_list.startBuilding()\n
\n
# User has to access his person profile\n
person_value = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
......
......@@ -117,6 +117,7 @@ packing_list = module.newContent(\n
price_currency="currency_module/EUR",\n
activate_kw=activate_kw\n
)\n
packing_list.startBuilding()\n
packing_list.newContent(\n
portal_type="Purchase Packing List Line",\n
resource_uid=service_uid,\n
......
786
\ No newline at end of file
787
\ No newline at end of file
......@@ -70,6 +70,7 @@ packing_list = packing_list_module.newContent(\n
price_currency=delivery.getPriceCurrency(),\n
start_date=DateTime())\n
\n
packing_list.startBuilding()\n
packing_list_line = packing_list.newContent(\n
portal_type=\'Sale Packing List Line\',\n
resource=service.getRelativeUrl(),\n
......
21
\ No newline at end of file
22
\ 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