Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
5bb7b5b6
Commit
5bb7b5b6
authored
Oct 19, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payroll: simplify Person_getPayrollEnrollmentRecord
parent
fb36abd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/Person_getPayrollEnrollmentRecord.py
...l_skins/erp5_payroll/Person_getPayrollEnrollmentRecord.py
+3
-3
No files found.
bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/Person_getPayrollEnrollmentRecord.py
View file @
5bb7b5b6
...
...
@@ -16,9 +16,9 @@ if isinstance(organisation, str):
organisation
=
getObjectOrRaise
(
organisation_module
,
organisation
)
# If no id, let's expect that the parameters are objects
career_step_list
=
context
.
objectValues
(
portal_type
=
"Career"
,
subordination_uid
=
organisation
.
getUid
(),
validation_state
=
'open'
)
career_step_list
=
context
.
objectValues
(
portal_type
=
"Career"
)
career_step_list
=
[
career
for
career
in
career_step_list
if
career
.
getValidationState
()
==
'open'
]
if
len
(
career_step_list
)
<=
0
:
raise
ValueError
(
"No open Career for employee %s"
%
context
.
getRelativeUrl
())
else
:
...
...
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