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

Revert back to simple and fast method.

parent 2c76f44d
......@@ -53,9 +53,7 @@
<value> <string>portal = context.getPortalObject()\n
portal.portal_catalog.searchAndActivate(\n
portal_type=\'Person\',\n
method_id=\'Person_buildAndPlanInvoice\',\n
packet_site=1,\n
activate_kw={\'priority\': 8}\n
method_id=\'Person_buildAndPlanInvoice\'\n
)\n
</string> </value>
</item>
......
......@@ -70,7 +70,7 @@ movement_list = context.portal_catalog(**kw)\n
\n
if len(movement_list) > 0:\n
context.VifibSaleInvoiceBuilder_buildAndPlan(context.getPortalObject().portal_deliveries.vifib_sale_invoice_builder, movement_list=movement_list)\n
context.activate(priority=8).Person_buildAndPlanInvoice(movement_list[-1].getUid())\n
context.activate().Person_buildAndPlanInvoice(movement_list[-1].getUid())\n
]]></string> </value>
......
57
\ No newline at end of file
58
\ 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