Commit 604db416 authored by Yusei Tahara's avatar Yusei Tahara

[erp5_web_renderjs_ui] Render MatrixBox in non-editable mode.

MatrixBox is often used for price tables or code tables. So it is always useful for end users to display its contents.
parent 17f5aec9
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
// can contain editable fields // can contain editable fields
if (field.type === "ListBox") {return true; } if (field.type === "ListBox") {return true; }
if (field.type === "FormBox") {return true; } if (field.type === "FormBox") {return true; }
// MatrixBox is often used for price tables or code tables. So it is always
// useful for end users to display its contents.
if (field.type === "MatrixBox") {return true; }
// hidden fields should not be obviously rendered // hidden fields should not be obviously rendered
if (field.hidden === 1) {return false; } if (field.hidden === 1) {return false; }
// empty default value must not be displayed // empty default value must not be displayed
......
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>974.48369.21631.14967</string> </value> <value> <string>977.8710.963.57139</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -246,8 +246,8 @@ ...@@ -246,8 +246,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1554112407.89</float> <float>1563356931.45</float>
<string>UTC</string> <string>GMT+9</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
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