Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Arnaud Fontaine
erp5
Commits
1338ffb3
Commit
1338ffb3
authored
12 years ago
by
Julien Muchembled
Browse files
Options
Download
Email Patches
Plain Diff
erp5_project: small code simplification
parent
a60dd069
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml
...task_report_workflow/scripts/PackingList_buildInvoice.xml
+3
-13
bt5/erp5_project/bt/revision
bt5/erp5_project/bt/revision
+1
-1
No files found.
bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml
View file @
1338ffb3
...
...
@@ -50,23 +50,13 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
LOG=lambda msg:context.log("TaskReport_buildInvoice", msg)\n
\n
packing_list = sci[\'object\']\n
delivery_tool = sci.getPortal().portal_deliveries\n
LOG("Task Report : %s"%packing_list.getPath())\n
\n
if hasattr(sci.getPortal(), \'accounting_module\'):\n
if hasattr(delivery_tool, \'task_invoice_builder\'):\n
delivery_tool.task_invoice_builder.activate(\n
<value>
<string>
portal = sci.getPortal()\n
if portal.hasObject(\'accounting_module\'):\n
portal.portal_deliveries.task_invoice_builder.activate(\n
after_method_id = [ \'expand\', \n
\'recursiveImmediateReindexObject\',\n
\'immediateReindexObject\' ],\n
).build()\n
else :\n
packing_list.log("ERP5 Simulation",\n
"Unable to build Invoice from Task Report at %s "\\\n
": no task_invoice_builder" % packing_list.getPath())\n
</string>
</value>
</item>
<item>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_project/bt/revision
View file @
1338ffb3
808
\ No newline at end of file
809
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment