Commit 73df2670 authored by Łukasz Nowak's avatar Łukasz Nowak

Typos.

parent 505d4333
......@@ -38,9 +38,9 @@ def OpenSaleOrderLine_migrate(self):
self.setPriceCurrency('currency_module/EUR')
@WorkflowMethod.disable
def VifibInvoiceLineBuilder_buildAndPlan(self, explanation_uid):
delivery_list = self.build(applied_rule_uid=explanation_uid)
def VifibInvoiceLineBuilder_buildAndPlan(self, explanation):
delivery_list = self.build(explanation=explanation)
wf = self.getPortalObject().portal_workflow.accounting_workflow
plan_tdef = wf.transitions.get("plan")
for delivery in delivery_list:
wf._changeStateOf(delivery, plan_tdef, comment="Generated by the upgrade")
wf._changeStateOf(delivery, plan_tdef, dict(comment="Generated by the upgrade"))
......@@ -51,10 +51,10 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
portal.portal_catalog(\n
portal.portal_catalog.searchAndActivate(\n
portal_type=\'Applied Rule\',\n
parent_uid=portal.portal_simulation.getUid(),\n
method=\'AppliedRule_buildAndPlanInvoice\'\n
method_id=\'RootAppliedRule_buildAndPlanInvoice\'\n
)\n
</string> </value>
</item>
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.getPortalObject().portal_deliveries.vifib_sale_invoice_builder.VifibInvoiceLineBuilder_buildAndPlan(explanation_uid=context.getUid)\n
<value> <string>context.VifibInvoiceLineBuilder_buildAndPlan(context.getPortalObject().portal_deliveries.vifib_sale_invoice_builder, explanation=context.getCausalityValue())\n
</string> </value>
</item>
<item>
......
51
\ No newline at end of file
52
\ 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