Commit ee811272 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Add modification_date on document creation

parent f5cfabc5
......@@ -23,6 +23,7 @@
return form_gadget.getContent();
})
.push(function (doc) {
doc.modification_date = (new Date()).toISOString();
return gadget.jio_post(doc);
})
.push(function () {
......
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.10273.32311.54476</string> </value>
<value> <string>961.10686.10882.5973</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1501746606.13</float>
<float>1501773055.42</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -23,6 +23,7 @@
return form_gadget.getContent();
})
.push(function (doc) {
doc.modification_date = (new Date()).toISOString();
return gadget.jio_post(doc);
})
.push(function () {
......
......@@ -270,7 +270,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.9185.61711.28347</string> </value>
<value> <string>961.10686.10882.5973</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -288,7 +288,7 @@
</tuple>
<state>
<tuple>
<float>1501680134.11</float>
<float>1501773072.78</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