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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Emmerich
erp5
Commits
04a24367
Commit
04a24367
authored
Feb 14, 2017
by
Cédric Le Ninivin
Committed by
Xiaowu Zhang
Feb 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_travel_expense: Synchronise if no synchronisation have been made
parent
acccb00c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.js
...thTemplateItem/web_page_module/gadget_hr_page_front_js.js
+7
-1
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.xml
...hTemplateItem/web_page_module/gadget_hr_page_front_js.xml
+3
-3
No files found.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.js
View file @
04a24367
...
...
@@ -72,7 +72,13 @@
return
gadget
.
getSetting
(
'
last_sync_date
'
);
})
.
push
(
function
(
result
)
{
gadget
.
props
.
element
.
querySelector
(
'
.last_sync_date
'
).
innerHTML
=
result
||
'
not synchronize yet
'
;
if
(
!
result
)
{
return
gadget
.
redirect
({
page
:
'
sync
'
,
auto_repair
:
true
});
}
gadget
.
props
.
element
.
querySelector
(
'
.last_sync_date
'
).
innerHTML
=
result
;
gadget
.
props
.
portal_type
=
"
Expense Record
"
;
gadget
.
props
.
document_title_plural
=
"
Expense Requests
"
;
return
RSVP
.
all
([
...
...
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.xml
View file @
04a24367
...
...
@@ -256,7 +256,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
supercedriclen
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -270,7 +270,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
957.
10736.21518.26248
</string>
</value>
<value>
<string>
957.
21009.18378.49715
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -288,7 +288,7 @@
</tuple>
<state>
<tuple>
<float>
148
6476551.71
</float>
<float>
148
7092895.73
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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