Commit 52a2a300 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_travel_expense: don't save if it's readonly

parent fffb7722
......@@ -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,
......
......@@ -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>994.55194.7094.63129</string> </value>
<value> <string>996.48024.29057.43229</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -268,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>1631870226.12</float>
<float>1639131883.77</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment