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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
f1bac156
Commit
f1bac156
authored
Feb 24, 2022
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_travel_expense: create leave report for new event
parent
636e1534
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
246 additions
and
0 deletions
+246
-0
bt5/erp5_travel_expense/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
...rtalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+4
-0
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow.xml
...ortal_workflow/holiday_acquision_interaction_workflow.xml
+78
-0
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow/interaction_Acquision%20State%20Change.xml
...ction_workflow/interaction_Acquision%20State%20Change.xml
+73
-0
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow/script_HolidayAcquisition_createLeaveReportRecord.py
...flow/script_HolidayAcquisition_createLeaveReportRecord.py
+11
-0
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow/script_HolidayAcquisition_createLeaveReportRecord.xml
...low/script_HolidayAcquisition_createLeaveReportRecord.xml
+78
-0
bt5/erp5_travel_expense/bt/template_portal_type_workflow_chain_list
...ravel_expense/bt/template_portal_type_workflow_chain_list
+1
-0
bt5/erp5_travel_expense/bt/template_workflow_id_list
bt5/erp5_travel_expense/bt/template_workflow_id_list
+1
-0
No files found.
bt5/erp5_travel_expense/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
View file @
f1bac156
...
...
@@ -11,6 +11,10 @@
<type>
Expense Validation Request
</type>
<workflow>
edit_workflow, expense_validation_request_interaction_workflow, pricing_interaction_workflow, ticket_acceptance_simulation_workflow, ticket_interaction_workflow, ticket_record_interaction_workflow
</workflow>
</chain>
<chain>
<type>
Holiday Acquisition
</type>
<workflow>
holiday_acquision_interaction_workflow
</workflow>
</chain>
<chain>
<type>
Leave Report Record
</type>
<workflow>
edit_workflow, event_interaction_workflow, event_simulation_workflow, pricing_interaction_workflow
</workflow>
...
...
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow.xml
0 → 100644
View file @
f1bac156
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Interaction Workflow"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
ticket_record_interaction_workflow
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Update Records related to tickets
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
holiday_acquision_interaction_workflow
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Interaction Workflow
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Holiday Acquision Interaction Workflow Definition
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow/interaction_Acquision%20State%20Change.xml
0 → 100644
View file @
f1bac156
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Interaction Workflow Interaction"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
activate_script/portal_workflow/holiday_acquision_interaction_workflow/script_HolidayAcquisition_createLeaveReportRecord
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
interaction_Acquision State Change
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Interaction Workflow Interaction
</string>
</value>
</item>
<item>
<key>
<string>
portal_type_filter
</string>
</key>
<value>
<tuple>
<string>
Holiday Acquisition
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type_group_filter
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
temporary_document_disallowed
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
acquision_state_change
</string>
</value>
</item>
<item>
<key>
<string>
trigger_method_id
</string>
</key>
<value>
<tuple>
<string>
confirm
</string>
<string>
cancel
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
trigger_once_per_transaction
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
trigger_type
</string>
</key>
<value>
<int>
2
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow/script_HolidayAcquisition_createLeaveReportRecord.py
0 → 100644
View file @
f1bac156
holiday_acquisition
=
state_change
[
"object"
]
portal
=
context
.
getPortalObject
()
record
=
portal
.
record_module
.
newContent
(
portal_type
=
"Leave Report Record"
,
source
=
holiday_acquisition
.
getDestination
(),
follow_up
=
holiday_acquisition
.
getDestination
()
)
record
.
stop
()
record
.
Record_archivePreviousVersions
()
bt5/erp5_travel_expense/WorkflowTemplateItem/portal_workflow/holiday_acquision_interaction_workflow/script_HolidayAcquisition_createLeaveReportRecord.xml
0 → 100644
View file @
f1bac156
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
state_change
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
script_HolidayAcquisition_createLeaveReportRecord
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Script
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_travel_expense/bt/template_portal_type_workflow_chain_list
View file @
f1bac156
...
...
@@ -11,6 +11,7 @@ Expense Validation Request | pricing_interaction_workflow
Expense Validation Request | ticket_acceptance_simulation_workflow
Expense Validation Request | ticket_interaction_workflow
Expense Validation Request | ticket_record_interaction_workflow
Holiday Acquisition | holiday_acquision_interaction_workflow
Leave Report Record | edit_workflow
Leave Report Record | event_interaction_workflow
Leave Report Record | event_simulation_workflow
...
...
bt5/erp5_travel_expense/bt/template_workflow_id_list
View file @
f1bac156
expense_validation_request_interaction_workflow
holiday_acquision_interaction_workflow
ticket_acceptance_simulation_workflow
ticket_record_interaction_workflow
\ 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