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