[IMP] When result is null then displayed message in listview for no any records found...
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>
Wed, 19 Oct 2011 06:56:44 +0000 (12:26 +0530)
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>
Wed, 19 Oct 2011 06:56:44 +0000 (12:26 +0530)
bzr revid: bth@tinyerp.com-20111019065644-nalzsdy6k0klb7jb

addons/web_mobile/static/src/xml/web_mobile.xml

index 775ac90..f395600 100644 (file)
 <t t-name="ListView">
     <t t-call="Header" />
     <div id="content" data-role="content">
-        <ul data-role="listview" data-inset="true" data-theme="d" data-filter="true">
-            <li data-theme="c" t-foreach="records" t-as="record">
-                <a id="list-id" t-att-data-id="record[0]" href="#">
-                    <t t-esc="record[1]"/>
-                </a>
-            </li>
-        </ul>
+        <t t-if="!(records.length>0)">
+            No one record is created
+        </t>
+        <t t-if="records.length>0">
+            <ul data-role="listview" data-inset="true" data-theme="d" data-filter="true">
+                <li data-theme="c" t-foreach="records" t-as="record">
+                    <a id="list-id" t-att-data-id="record[0]" href="#">
+                        <t t-esc="record[1]"/>
+                    </a>
+                </li>
+            </ul>
+        </t>
     </div>
     <t t-call="Footer" />
 </t>