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
143
Merge Requests
143
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
dba378d6
Commit
dba378d6
authored
Aug 02, 2024
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Not needed?
parent
f27568d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PersonModule_getLeaveRequestReportLineList.py
...p5_calendar/PersonModule_getLeaveRequestReportLineList.py
+1
-1
bt5/erp5_configurator_run_my_doc/SkinTemplateItem/portal_skins/erp5_configurator_run_my_doc/BusinessConfiguration_afterRunMyDocConfiguration.py
...y_doc/BusinessConfiguration_afterRunMyDocConfiguration.py
+3
-3
No files found.
bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PersonModule_getLeaveRequestReportLineList.py
View file @
dba378d6
...
...
@@ -39,7 +39,7 @@ for person in person_value_list:
portal_type
=
'Leave Request Period'
,
group_by_resource
=
1
):
resource
=
inventory
.
resource_relative_url
resource
=
inventory
.
resource_relative_url
or
''
if
inventory
.
resource_uid
in
presence_resource_uid_list
:
raise
ValueError
(
"This report does not work when same resource are"
...
...
bt5/erp5_configurator_run_my_doc/SkinTemplateItem/portal_skins/erp5_configurator_run_my_doc/BusinessConfiguration_afterRunMyDocConfiguration.py
View file @
dba378d6
...
...
@@ -51,7 +51,7 @@ if business_template is not None:
# no need to update security on categories
if
obj
is
not
None
and
obj
.
getPortalType
()
not
in
(
'Category'
,
'Base Category'
,):
obj
.
updateLocalRolesOnSecurityGroups
()
context
.
log
(
"Updated Role Mappings for:
"
,
path
,
obj
.
getPortalType
(
))
context
.
log
(
"Updated Role Mappings for:
%s (%s)"
%
(
path
,
obj
.
getPortalType
()
))
# validate and open all objects
for
path
in
business_template
.
getTemplatePathList
():
...
...
@@ -62,13 +62,13 @@ if business_template is not None:
'Organisation'
):
if
isTransitionPossible
(
obj
,
'validate'
):
obj
.
validate
()
context
.
log
(
"Validated:
"
,
obj
.
getRelativeUrl
())
context
.
log
(
"Validated:
%s"
%
obj
.
getRelativeUrl
())
for
assignment
in
obj
.
contentValues
(
filter
=
{
'portal_type'
:
'Assignment'
}):
if
isTransitionPossible
(
assignment
,
'open'
):
assignment
.
open
()
assignment
.
updateLocalRolesOnSecurityGroups
()
context
.
log
(
"
\
t
Open (assignment):
"
,
assignment
.
getRelativeUrl
())
context
.
log
(
"
\
t
Open (assignment):
%s"
%
assignment
.
getRelativeUrl
())
for
gadget
in
context
.
portal_gadgets
.
objectValues
():
if
gadget
.
getValidationState
()
==
'invisible'
:
...
...
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