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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
c9b30aad
Commit
c9b30aad
authored
Feb 21, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payroll_l10n_fr: Improve jump if no document related.
Also include a minimal message.
parent
514bf524
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/LeaveRequest_jumpToRelatedPaySheetTransaction.py
..._l10n_fr/LeaveRequest_jumpToRelatedPaySheetTransaction.py
+11
-1
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/LeaveRequest_jumpToRelatedPaySheetTransaction.xml
...l10n_fr/LeaveRequest_jumpToRelatedPaySheetTransaction.xml
+6
-6
No files found.
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/LeaveRequest_jumpToRelatedPaySheetTransaction.py
View file @
c9b30aad
return
context
.
LeaveRequest_getRelatedPaySheetTransaction
().
Base_redirect
()
transaction
=
context
.
LeaveRequest_getRelatedPaySheetTransaction
()
translateString
=
context
.
Base_translateString
if
transaction
is
not
None
:
return
transaction
.
Base_redirect
(
"view"
,
keep_items
=
{
'portal_status_message'
:
translateString
(
'Related Pay Sheet Transaction.'
)})
return
context
.
Base_redirect
(
"view"
,
keep_items
=
{
'portal_status_message'
:
translateString
(
'No Related Pay Sheet Transaction.'
)})
bt5/erp5_payroll_l10n_fr/SkinTemplateItem/portal_skins/erp5_payroll_l10n_fr/LeaveRequest_jumpToRelatedPaySheetTransaction.xml
View file @
c9b30aad
...
...
@@ -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