Commit df520505 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: ajax must return a active process image content UUID

parent e52c4998
...@@ -93,12 +93,10 @@ ...@@ -93,12 +93,10 @@
} }
}); });
}) })
.push(function () { .push(function (response) {
var state_dict = {}; var state_dict = {};
state_dict['blob_state_' + blob_page] = 'OK'; state_dict['blob_state_' + blob_page] = 'OK';
// XXX TODO: ajax must return a active process image content UUID state_dict['blob_uuid_' + blob_page] = response.uuid;
// which should be sent in the final form submittion
state_dict['blob_uuid_' + blob_page] = 'XXX';
return gadget.changeState(state_dict); return gadget.changeState(state_dict);
}, function () { }, function () {
// XXX TODO: Handle error case // XXX TODO: Handle error case
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>981.39686.3809.47701</string> </value> <value> <string>981.39718.56660.63334</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1580771167.45</float> <float>1580773087.67</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
import json import json
_, reference = context.Base_postDataToActiveResult( _, uuid = context.Base_postDataToActiveResult(
active_process_url, input_value) active_process_url, input_value)
return json.dumps({"reference": reference}) return json.dumps({"uuid": uuid})
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