Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
1338ffb3
Commit
1338ffb3
authored
Apr 06, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
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>
...
...
bt5/erp5_project/bt/revision
View file @
1338ffb3
808
\ No newline at end of file
809
\ No newline at end of file
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