summaryrefslogtreecommitdiff
path: root/addons/web_settings_dashboard/static/src/xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-11-05 17:57:48 +0100
committerChristophe Simonis <chs@odoo.com>2015-11-05 17:57:48 +0100
commited11d79bd8839c287eb71a0ae02512d5107350b6 (patch)
tree16833563b209671153cb52a1539da91fc273f019 /addons/web_settings_dashboard/static/src/xml
parentfddbe4076b4238bdace5817f8bdd82c584c50acf (diff)
[IMP] web_settings_dashboard: speed up Inviation dashboard
Searching on `log_ids` field is slow when there is a lot of users. Count the number of active/pending users directly in sql. Only show the last 10 pending users. Add a link to the full list view.
Diffstat (limited to 'addons/web_settings_dashboard/static/src/xml')
-rw-r--r--addons/web_settings_dashboard/static/src/xml/dashboard.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web_settings_dashboard/static/src/xml/dashboard.xml b/addons/web_settings_dashboard/static/src/xml/dashboard.xml
index 160664f7c5e..5c8a0fd45e4 100644
--- a/addons/web_settings_dashboard/static/src/xml/dashboard.xml
+++ b/addons/web_settings_dashboard/static/src/xml/dashboard.xml
@@ -66,6 +66,10 @@
<t t-foreach="pending_users" t-as="pending">
<a href="#"><div class="o_web_settings_dashboard_user" t-att-data-user-id="pending[0]"> <t t-esc="pending[1]"/></div></a>
</t>
+ <t t-if="pending_users.length &lt; widget.data.pending_count">
+ <br/>
+ <a href="#"><div class="o_web_settings_dashboard_more"><t t-esc="widget.data.pending_count - pending_users.length"/> more</div></a>
+ </t>
</t>
</small>
</div>