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
Georgios Dagkakis
erp5
Commits
eff09a03
Commit
eff09a03
authored
Feb 29, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
payroll_l10n_fr: coding style
parent
ca5a11db
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
25 additions
and
178 deletions
+25
-178
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20Early%20Recovery%20Report/view_editor.xml
...tal_types/DSN%20Early%20Recovery%20Report/view_editor.xml
+1
-1
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20End%20Of%20Contract%20Report/view_editor.xml
..._types/DSN%20End%20Of%20Contract%20Report/view_editor.xml
+1
-1
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20Monthly%20Report/print.xml
...emplateItem/portal_types/DSN%20Monthly%20Report/print.xml
+1
-1
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20Monthly%20Report/view_editor.xml
...eItem/portal_types/DSN%20Monthly%20Report/view_editor.xml
+1
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNDisenrollmentRecord_view.xml
...kins/erp5_payroll_l10n_fr/DSNDisenrollmentRecord_view.xml
+1
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNDisenrollmentRecord_view/my_translated_validation_state_title.xml
...lmentRecord_view/my_translated_validation_state_title.xml
+1
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_printAsFile.py
...kins/erp5_payroll_l10n_fr/DSNMonthlyReport_printAsFile.py
+0
-0
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_printAsFile.xml
...ins/erp5_payroll_l10n_fr/DSNMonthlyReport_printAsFile.xml
+1
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_viewEditor.xml
...kins/erp5_payroll_l10n_fr/DSNMonthlyReport_viewEditor.xml
+1
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_viewEditor/my_text_content.xml
...l_l10n_fr/DSNMonthlyReport_viewEditor/my_text_content.xml
+0
-0
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_viewFilePrintDialog.xml
..._payroll_l10n_fr/DSNMonthlyReport_viewFilePrintDialog.xml
+3
-3
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNMonthlyReport_viewFilePrintDialog/your_sending_mode.xml
...SNMonthlyReport_viewFilePrintDialog/your_sending_mode.xml
+0
-0
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_getGroupedOlderValueDict.py
...rp5_payroll_l10n_fr/DSNReport_getGroupedOlderValueDict.py
+0
-55
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_getGroupedOlderValueDict.xml
...p5_payroll_l10n_fr/DSNReport_getGroupedOlderValueDict.xml
+0
-62
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DsnEnrollmentRecord_view.xml
...l_skins/erp5_payroll_l10n_fr/DsnEnrollmentRecord_view.xml
+1
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DsnEnrollmentRecord_view/my_translated_validation_state_title.xml
...lmentRecord_view/my_translated_validation_state_title.xml
+1
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/LeaveRequest_view/listbox_quantity.xml
...p5_payroll_l10n_fr/LeaveRequest_view/listbox_quantity.xml
+0
-36
bt5/erp5_payroll_l10n_fr/WorkflowTemplateItem/portal_workflow/leave_request_interaction_workflow/script_LeaveRequestPeriod_setLeaveRequestDate.xml
...orkflow/script_LeaveRequestPeriod_setLeaveRequestDate.xml
+6
-6
bt5/erp5_payroll_l10n_fr/WorkflowTemplateItem/portal_workflow/leave_request_interaction_workflow/script_LeaveRequest_setLeaveRequestPeriodDate.xml
...orkflow/script_LeaveRequest_setLeaveRequestPeriodDate.xml
+6
-6
No files found.
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20Early%20Recovery%20Report/view_editor.xml
View file @
eff09a03
...
...
@@ -77,7 +77,7 @@
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/DSNReport_viewEditor
</string>
</value>
<value>
<string>
string:${object_url}/DSN
Monthly
Report_viewEditor
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20End%20Of%20Contract%20Report/view_editor.xml
View file @
eff09a03
...
...
@@ -77,7 +77,7 @@
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/DSNReport_viewEditor
</string>
</value>
<value>
<string>
string:${object_url}/DSN
Monthly
Report_viewEditor
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20Monthly%20Report/print.xml
View file @
eff09a03
...
...
@@ -77,7 +77,7 @@
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/DSNReport_viewFilePrintDialog
</string>
</value>
<value>
<string>
string:${object_url}/DSN
Monthly
Report_viewFilePrintDialog
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_payroll_l10n_fr/ActionTemplateItem/portal_types/DSN%20Monthly%20Report/view_editor.xml
View file @
eff09a03
...
...
@@ -77,7 +77,7 @@
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/DSNReport_viewEditor
</string>
</value>
<value>
<string>
string:${object_url}/DSN
Monthly
Report_viewEditor
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNDisenrollmentRecord_view.xml
View file @
eff09a03
...
...
@@ -85,7 +85,7 @@
<value>
<list>
<string>
my_notice_type
</string>
<string>
my_validation_state_title
</string>
<string>
my_
translated_
validation_state_title
</string>
</list>
</value>
</item>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNDisenrollmentRecord_view/my_validation_state_title.xml
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNDisenrollmentRecord_view/my_
translated_
validation_state_title.xml
View file @
eff09a03
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_validation_state_title
</string>
</value>
<value>
<string>
my_
translated_
validation_state_title
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_printAsFile.py
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSN
Monthly
Report_printAsFile.py
View file @
eff09a03
File moved
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_printAsFile.xml
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSN
Monthly
Report_printAsFile.xml
View file @
eff09a03
...
...
@@ -54,7 +54,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DSNReport_printAsFile
</string>
</value>
<value>
<string>
DSN
Monthly
Report_printAsFile
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_viewEditor.xml
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSN
Monthly
Report_viewEditor.xml
View file @
eff09a03
...
...
@@ -87,7 +87,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DSNReport_viewEditor
</string>
</value>
<value>
<string>
DSN
Monthly
Report_viewEditor
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_viewEditor/my_text_content.xml
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSN
Monthly
Report_viewEditor/my_text_content.xml
View file @
eff09a03
File moved
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_viewFilePrintDialog.xml
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSN
Monthly
Report_viewFilePrintDialog.xml
View file @
eff09a03
...
...
@@ -14,7 +14,7 @@
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
DSNReport_printAsFile
</string>
</value>
<value>
<string>
DSN
Monthly
Report_printAsFile
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -87,7 +87,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DSNReport_viewFilePrintDialog
</string>
</value>
<value>
<string>
DSN
Monthly
Report_viewFilePrintDialog
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
...
...
@@ -95,7 +95,7 @@
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
DSNReport_viewFilePrintDialog
</string>
</value>
<value>
<string>
DSN
Monthly
Report_viewFilePrintDialog
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_viewFilePrintDialog/your_sending_mode.xml
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSN
Monthly
Report_viewFilePrintDialog/your_sending_mode.xml
View file @
eff09a03
File moved
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_getGroupedOlderValueDict.py
deleted
100644 → 0
View file @
ca5a11db
"""
Return a list of values of a given rubric from one or more DSN Records.
Rubrics will be grouped on a given parent's bloc. This bloc must be made unique
by a given rubrique's code.
Values will be returned as a list in a dictionnary, whose keys are the values of
the unique rubrique's code use to group them.
"""
portal
=
context
.
getPortalObject
()
if
not
searched_block
:
searched_block
=
'S21.G00.23'
if
not
grouping_rubric
:
grouping_rubric
=
'S21.G00.11.001'
dsn_files
=
portal
.
dsn_module
.
searchFolder
(
effective_date
=
">%s"
%
from_date
,
simulation_state
=
'validated'
,
**
kw
)
result_dict
=
{}
for
dsn_file
in
dsn_files
:
# Exclude current and future DSNs
if
dsn_file
.
getEffectiveDate
()
>=
context
.
getEffectiveDate
():
continue
dsn_file
=
dsn_file
.
getObject
()
result_dict
[
dsn_file
]
=
{}
found_parent
=
False
dsn_data
=
dsn_file
.
getTextContent
()
is_monthly_dsn
=
False
result_bloc
=
[]
last_rubric
=
''
for
line
in
dsn_data
.
split
(
'
\
n
'
):
rubric
,
value
=
line
.
split
(
','
,
1
)
value
=
value
.
strip
(
'
\
'
'
)
# Let's exclude events DSN
if
rubric
==
'S20.G00.05.001'
:
is_monthly_dsn
=
(
True
if
value
==
'01'
else
False
)
# We found a parent node
if
grouping_rubric
==
rubric
and
is_monthly_dsn
:
found_parent
=
value
result_dict
[
dsn_file
][
value
]
=
[]
# If we have finished a bloc, we add it to the returned dict,
# and we look for another bloc under the same parent node
if
rubric
<
last_rubric
and
found_parent
and
len
(
result_bloc
):
result_dict
[
dsn_file
][
found_parent
].
append
(
result_bloc
)
result_bloc
=
[]
# The bloc we are looking for has been found. We add it to
# the corresponding gathering rubric
if
found_parent
and
searched_block
in
rubric
and
is_monthly_dsn
:
result_bloc
.
append
((
rubric
,
value
))
last_rubric
=
rubric
return
result_dict
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DSNReport_getGroupedOlderValueDict.xml
deleted
100644 → 0
View file @
ca5a11db
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
searched_block=\'\', grouping_rubric=\'\', from_date=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DSNReport_getGroupedOlderValueDict
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DsnEnrollmentRecord_view.xml
View file @
eff09a03
...
...
@@ -105,7 +105,7 @@
<string>
my_civil_servant_status
</string>
<string>
my_occupational_accident_risk_code
</string>
<string>
my_occupational_accident_risk_rate
</string>
<string>
my_validation_state_title
</string>
<string>
my_
translated_
validation_state_title
</string>
</list>
</value>
</item>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DsnEnrollmentRecord_view/my_validation_state_title.xml
→
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/DsnEnrollmentRecord_view/my_
translated_
validation_state_title.xml
View file @
eff09a03
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_validation_state_title
</string>
</value>
<value>
<string>
my_
translated_
validation_state_title
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/LeaveRequest_view/listbox_quantity.xml
View file @
eff09a03
...
...
@@ -92,34 +92,6 @@
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
extra_context
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -132,14 +104,6 @@
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
...
...
bt5/erp5_payroll_l10n_fr/WorkflowTemplateItem/portal_workflow/leave_request_interaction_workflow/script_LeaveRequestPeriod_setLeaveRequestDate.xml
View file @
eff09a03
...
...
@@ -6,18 +6,18 @@
</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
"
/>
<global
name=
"
_reconstructor"
module=
"copy_reg
"
/>
</klass>
<tuple/>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
...
...
bt5/erp5_payroll_l10n_fr/WorkflowTemplateItem/portal_workflow/leave_request_interaction_workflow/script_LeaveRequest_setLeaveRequestPeriodDate.xml
View file @
eff09a03
...
...
@@ -6,18 +6,18 @@
</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
"
/>
<global
name=
"
_reconstructor"
module=
"copy_reg
"
/>
</klass>
<tuple/>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
...
...
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