summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2011-11-29 12:00:29 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2011-11-29 12:00:29 +0530
commit342b0a1ac8b37d6bfb2a0ff3cf7dfdd6cb37b504 (patch)
treeab485378a05dc87e8ac2009f892f8dfcc93c5946 /addons/web_mobile/static/src
parent11dee02df245f00bb26ed6022f8e41c9369728b3 (diff)
[IMP] To show many2many field on form view.
bzr revid: jra@tinyerp.com-20111129063029-6pvqwh4uvts1pcft
Diffstat (limited to 'addons/web_mobile/static/src')
-rw-r--r--addons/web_mobile/static/src/xml/web_mobile.xml15
1 files changed, 12 insertions, 3 deletions
diff --git a/addons/web_mobile/static/src/xml/web_mobile.xml b/addons/web_mobile/static/src/xml/web_mobile.xml
index 1d6f81404d2..1deb752cab6 100644
--- a/addons/web_mobile/static/src/xml/web_mobile.xml
+++ b/addons/web_mobile/static/src/xml/web_mobile.xml
@@ -298,13 +298,22 @@
</t>
<t t-if="fields[field.attrs.name].type == 'one2many'">
<ul data-role="listview" data-inset="true" data-theme="d">
- <li data-theme="c" t-att-for="field.attrs.name" >
+ <li id="o2m_btn" data-theme="c" t-att-for="field.attrs.name" >
<a href="">
<t t-esc="fields[field.attrs.name].string"/>
</a>
</li>
- </ul>
- </t>
+ </ul>
+ </t>
+ <t t-if="fields[field.attrs.name].type == 'many2many'">
+ <ul data-role="listview" data-inset="true" data-theme="d">
+ <li id="m2m_btn" data-theme="c" t-att-for="field.attrs.name" >
+ <a href="">
+ <t t-esc="fields[field.attrs.name].string"/>
+ </a>
+ </li>
+ </ul>
+ </t>
</div>
</t>
<t t-if="notebooks">