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
Xiaowu Zhang
erp5
Commits
52a2a300
Commit
52a2a300
authored
Jan 03, 2022
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_travel_expense: don't save if it's readonly
parent
fffb7722
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.js
...teItem/web_page_module/gadget_hr_leave_request_view_js.js
+4
-0
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.xml
...eItem/web_page_module/gadget_hr_leave_request_view_js.xml
+3
-5
No files found.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.js
View file @
52a2a300
...
...
@@ -88,6 +88,7 @@
state
=
getWorkflowState
(
options
),
not_sync_checked
;
gadget
.
options
=
options
;
gadget
.
options
.
readonly
=
state
.
readonly
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
...
...
@@ -234,6 +235,9 @@
'
submit
'
,
false
,
function
(
submit_event
)
{
if
(
gadget
.
options
.
readonly
)
{
return
;
}
return
getSequentialID
(
gadget
,
'
LRR
'
)
.
push
(
function
(
source_reference
)
{
var
i
,
...
...
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.xml
View file @
52a2a300
...
...
@@ -66,9 +66,7 @@
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/2
</string>
</tuple>
<tuple/>
</value>
</item>
<item>
...
...
@@ -250,7 +248,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
4.55194.7094.631
29
</string>
</value>
<value>
<string>
99
6.48024.29057.432
29
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -268,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>
163
1870226.12
</float>
<float>
163
9131883.77
</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