summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2011-09-16 18:54:11 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2011-09-16 18:54:11 +0530
commit28a13263c9c109d4a2c04831291308992b0b4c6e (patch)
treedea03b7422a3346d6be630534bc000f5c146d0ae /addons/web/static/src/xml/base.xml
parent972e0ff71cc881683e9d6a27a9504c946f840f53 (diff)
[imp]render object of xml in view editor with all data.
bzr revid: vme@tinyerp.com-20110916132411-4o787cega0nnxr33
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index e55d56f5912..0283bcc021e 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1243,6 +1243,28 @@
.unwrap();
</t>
</t>
+<t t-name="view_editor">
+ <table align="left" width= "100%">
+ <t t-call="view_editor.row"/>
+ </table>
+</t>
+<t t-name="view_editor.row">
+
+ <t t-foreach="data" t-as="rec">
+ <tr >
+ <td class= "view_editor"
+ t-att-style="'background-position: ' + 30*rec.level + 'px; padding-left: ' + 30*rec.level + 'px'">
+ <img t-if="rec.child_id.length" src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
+ <t t-esc="rec.name"/>
+ </td>
+ </tr >
+ <t t-if="rec.child_id.length">
+ <t t-set="data" t-value="rec.child_id"/>
+ <t t-call="view_editor.row"/>
+ </t>
+ </t>
+
+</t>
<t t-name="ExportView">
<a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
@@ -1295,6 +1317,7 @@
</tr>
</table>
+
<table t-name="ExportTreeView-Secondary"
id="field-tree-structure" class="oe_export_fields_selector_export"
cellspacing="0" cellpadding="0">