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
516a3c85
Commit
516a3c85
authored
Feb 23, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_hr: add more value for position application
parent
f310e4cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
bt5/erp5_hr/SkinTemplateItem/portal_skins/erp5_hr/PositionApplicationModule_addPositionApplication.py
...p5_hr/PositionApplicationModule_addPositionApplication.py
+19
-4
No files found.
bt5/erp5_hr/SkinTemplateItem/portal_skins/erp5_hr/PositionApplicationModule_addPositionApplication.py
View file @
516a3c85
...
@@ -28,6 +28,10 @@ position_application = context.position_application_module.newContent(
...
@@ -28,6 +28,10 @@ position_application = context.position_application_module.newContent(
destination_section
=
destination_section
,
destination_section
=
destination_section
,
follow_up
=
position
,
follow_up
=
position
,
aggregate
=
position_announcement
,
aggregate
=
position_announcement
,
start_date
=
web_message_date
,
end_date
=
DateTime
(),
title
=
"Application "
+
first_name
+
" "
+
last_name
,
reference
=
"NXD-Recruiting.Application."
+
first_name
+
"."
+
last_name
.
replace
(
" "
,
"."
),
source
=
source
,
source
=
source
,
source_decision
=
source_decision
,
source_decision
=
source_decision
,
source_trade_list
=
source_trade_list
)
source_trade_list
=
source_trade_list
)
...
@@ -51,16 +55,21 @@ if web_message_date or web_message_text or web_message_title:
...
@@ -51,16 +55,21 @@ if web_message_date or web_message_text or web_message_title:
source_value
=
context
.
ERP5Site_getAuthenticatedMemberPersonValue
(),
source_value
=
context
.
ERP5Site_getAuthenticatedMemberPersonValue
(),
destination_value
=
requester
,
destination_value
=
requester
,
title
=
'Re: %s'
%
web_message_title
,
title
=
'Re: %s'
%
web_message_title
,
start_date
=
addToDate
(
web_message_date
,
to_add
=
{
'minute'
:
1
}),
#start_date=addToDate(web_message_date,to_add={'minute': 1}),
start_date
=
DateTime
(),
causality_value
=
event
,
causality_value
=
event
,
follow_up_value
=
position_application
,
follow_up_value
=
position_application
,
content_type
=
'Mail Message'
)
#content_type='Mail Message',
content_type
=
'text/plain'
)
response
.
Event_setTextContentFromNotificationMessage
(
response
.
Event_setTextContentFromNotificationMessage
(
reference
=
response_template
,
reference
=
response_template
,
substitution_method_parameter_dict
=
dict
(
mapping_dict
=
{
'reply_body'
:
event
.
getReplyBody
(),
substitution_method_parameter_dict
=
dict
(
mapping_dict
=
{
'reply_body'
:
event
.
getReplyBody
(),
'reply_subject'
:
event
.
getReplySubject
(),
'reply_subject'
:
event
.
getReplySubject
(),
'sender_name'
:
context
.
ERP5Site_getAuthenticatedMemberPersonValue
().
getTitle
(),
'sender_name'
:
context
.
ERP5Site_getAuthenticatedMemberPersonValue
().
getTitle
(),
'recipient_first_name'
:
first_name
,
'recipient_first_name'
:
first_name
,
'recipient_last_name'
:
last_name
,
'source_event_start_date'
:
web_message_date
,
'position_title'
:
context
.
restrictedTraverse
(
position
).
getTitle
()
'position_title'
:
context
.
restrictedTraverse
(
position
).
getTitle
()
}))
}))
...
@@ -78,12 +87,18 @@ for line in listbox:
...
@@ -78,12 +87,18 @@ for line in listbox:
document
=
context
.
Base_contribute
(
**
document_kw
)
document
=
context
.
Base_contribute
(
**
document_kw
)
content_information
=
document
.
getContentInformation
()
content_information
=
document
.
getContentInformation
()
creator
=
content_information
.
pop
(
'Creator'
,
content_information
.
pop
(
'Generator'
,
None
))
creator
=
content_information
.
pop
(
'Creator'
,
content_information
.
pop
(
'Generator'
,
None
))
description
=
line
[
'document_type'
]
document_type
=
line
[
'document_type'
]
description
=
document_type
if
creator
:
if
creator
:
description
+=
', Generated by %s'
%
creator
description
+=
', Generated by %s'
%
creator
title
=
document_type
+
"."
+
first_name
+
"."
+
last_name
reference
=
"NXD-Recruiting."
+
title
.
replace
(
" "
,
"."
).
replace
(
"/"
,
"."
)
document
.
edit
(
document
.
edit
(
follow_up_value_list
=
[
requester
,
position_application
],
follow_up_value_list
=
[
requester
,
position_application
],
description
=
description
)
description
=
description
,
title
=
title
,
reference
=
reference
,
group_list
=
[
'nexedi'
])
if
batch
:
if
batch
:
return
position_application
return
position_application
...
...
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