diff options
| author | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-07-11 10:33:35 +0530 |
|---|---|---|
| committer | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-07-11 10:33:35 +0530 |
| commit | 2432079b1319190a636c0b1fdfc3cb3203f38832 (patch) | |
| tree | a99c87859dd290fc25568168680e55eee9ec7047 /addons/base_export/static/src/xml/base_export.xml | |
| parent | 521e2891f5d536e52193e0b007b70fce0247b332 (diff) | |
[IMP] improve export data.
bzr revid: ysa@tinyerp.com-20110711050335-fauz9cddnwj8urnv
Diffstat (limited to 'addons/base_export/static/src/xml/base_export.xml')
| -rw-r--r-- | addons/base_export/static/src/xml/base_export.xml | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/addons/base_export/static/src/xml/base_export.xml b/addons/base_export/static/src/xml/base_export.xml index 4fd9c7d872e..a104bc853a5 100644 --- a/addons/base_export/static/src/xml/base_export.xml +++ b/addons/base_export/static/src/xml/base_export.xml @@ -43,21 +43,8 @@ <th class="header_title"> Name </th> <tr> <td> - <table width="100%"> - <t t-foreach="fields" t-as="field" > - <tr t-att-id="'treerow_' + field.id" class="row"> - <td valign="top" align="left" style="cursor: pointer;"> - <t t-if="(field.children).length >= 1"> - <img t-att-id="'parentimg_' + field.id" src="/base/static/src/img/expand.gif" width="16" height="16" border="0"/> - </t> - </td> - <td valign="top" align="left" style="cursor: pointer;"> - <a href="javascript: void(0)" t-att-data-field="field"> - <t t-esc="field.string"/> - </a> - </td> - </tr> - </t> + <table width="100%" border="0"> + <t t-call="ExportTreeView-Secondary"/> </table> </td> </tr> @@ -106,4 +93,32 @@ </table> </t> + <t t-name="ExportTreeView-Secondary"> + + <t t-foreach="fields" t-as="field" > + <tr t-att-id="'treerow_' + field.id" class="row"> + <td> + <table width="100%" border="0"> + <tr class="row"> + <t t-if="(field.level).length >= 1"> + <t t-foreach="field.level" t-as="level" > + <td width="18">&nbsp;</td> + </t> + </t> + <td valign="top" align="left" style="cursor: pointer;" width="18"> + <t t-if="(field.children).length >= 1"> + <img t-att-id="'parentimg@' + field.id" src="/base/static/src/img/expand.gif" width="16" height="16" border="0"/> + </t> + </td> + <td valign="top" align="left" style="cursor: pointer;"> + <a href="javascript: void(0)"> + <t t-esc="field.string"/> + </a> + </td> + </tr> + </table> + </td> + </tr> + </t> + </t> </template>
\ No newline at end of file |
