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

Typos.

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