Commit ee811272 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Add modification_date on document creation

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