summaryrefslogtreecommitdiff
path: root/addons/base/static/src/xml/base.xml
diff options
context:
space:
mode:
authorKunal Chavda (OpenERP) <kch@tinyerp.com>2011-08-29 18:17:43 +0530
committerKunal Chavda (OpenERP) <kch@tinyerp.com>2011-08-29 18:17:43 +0530
commit4e8923ec8c50d455437c80fbcb5d4b8f9542b1d6 (patch)
tree6919e8af8cab836c565ca93adf8e4a6c83469200 /addons/base/static/src/xml/base.xml
parenta49a0288b83f55ecc0cf912af8712c0c9a64148c (diff)
[IMP]Implement selection box of list of fields under the header.
bzr revid: kch@tinyerp.com-20110829124743-0pcuv3e0u37cbpjf
Diffstat (limited to 'addons/base/static/src/xml/base.xml')
-rw-r--r--addons/base/static/src/xml/base.xml18
1 files changed, 17 insertions, 1 deletions
diff --git a/addons/base/static/src/xml/base.xml b/addons/base/static/src/xml/base.xml
index 60b9c4c4c08..7fd999d00d5 100644
--- a/addons/base/static/src/xml/base.xml
+++ b/addons/base/static/src/xml/base.xml
@@ -1459,7 +1459,23 @@
<t t-if="record=='header'">
<tr class="oe_import_grid-header">
<t t-foreach="records.header" t-as="header">
- <th class="oe_import_grid-cell"><t t-esc="header[0]"/></th>
+ <td class="oe_import_grid-cell" id="header"><t t-esc="header[0]"/></td>
+ </t>
+ </tr>
+ </t>
+ <t t-if="record=='sel'">
+ <tr>
+ <t t-foreach="records.header" t-as="header">
+ <td>
+ <select name="fld" id="fld">
+ <option selected="selected" value=""></option>
+ <t t-foreach="records.sel" t-as="selection">
+ <option t-att="{'selected': header[0] === selection ? 'selected' : null}"
+ t-att-value="selection"><t t-esc="selection"/>
+ </option>
+ </t>
+ </select>
+ </td>
</t>
</tr>
</t>