Commit 0cb6879f authored by Ayush Tiwari's avatar Ayush Tiwari

[erp5_officejs]: Update modification_dict format according to change made in JSON format

parent 2dd310e1
......@@ -26,6 +26,7 @@
if (result.data.rows[i].value.hasOwnProperty("modification_date")) {
date = new Date(result.data.rows[i].value.modification_date);
result.data.rows[i].value.modification_date = {
field_gadget_param: {
allow_empty_time: 0,
ampm_time_style: 0,
css_class: "date_field",
......@@ -40,6 +41,7 @@
timezone_style: 0,
title: "Modification Date",
type: "DateTimeField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -270,7 +270,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.17945.63308.40789</string> </value>
<value> <string>966.41210.1237.18158</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -288,7 +288,7 @@
</tuple>
<state>
<tuple>
<float>1510665209.8</float>
<float>1523022228.16</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -26,6 +26,7 @@
if (result.data.rows[i].value.hasOwnProperty("modification_date")) {
date = new Date(result.data.rows[i].value.modification_date);
result.data.rows[i].value.modification_date = {
field_gadget_param: {
allow_empty_time: 0,
ampm_time_style: 0,
css_class: "date_field",
......@@ -40,6 +41,7 @@
timezone_style: 0,
title: "Modification Date",
type: "DateTimeField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -273,7 +273,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.18608.9565.13602</string> </value>
<value> <string>966.44404.50238.55500</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -291,7 +291,7 @@
</tuple>
<state>
<tuple>
<float>1521474672.01</float>
<float>1523022279.07</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -29,6 +29,7 @@
if (result.data.rows[i].value.hasOwnProperty("created_time")) {
date = new Date(result.data.rows[i].value.created_time);
result.data.rows[i].value.created_time = {
field_gadget_param: {
allow_empty_time: 0,
ampm_time_style: 0,
css_class: "date_field",
......@@ -37,12 +38,13 @@
editable: 0,
hidden: 0,
hidden_day_is_last_day: 0,
default: date.toUTCString(),
key: "created_time",
"default": date.toUTCString(),
key: "modification_date",
required: 0,
timezone_style: 0,
title: "Creation Time",
title: "Modification Date",
type: "DateTimeField"
}
};
result.data.rows[i].value["listbox_uid:list"] = {
key: "listbox_uid:list",
......
......@@ -271,7 +271,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.22793.9752.13704</string> </value>
<value> <string>966.44408.19905.40038</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -289,7 +289,7 @@
</tuple>
<state>
<tuple>
<float>1506428719.88</float>
<float>1523281181.75</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