Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
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