[FIX] point_of_sale: useless field can degrade perfs

The field session_ids is fetched from the server for what seems to be no
good reason at all; for database with a lot of sessions (test case with
40k+ sessions), this can lead to an extremely slow dashboard.

closes odoo/odoo#33303

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Damien Bouvy
2019-05-10 14:53:28 +00:00
parent c13298fdac
commit 99a12a94c2
@@ -47,7 +47,6 @@
<field name="arch" type="xml">
<kanban create="false" class="o_kanban_dashboard o_pos_kanban">
<field name="name"/>
<field name="session_ids"/>
<field name="current_session_id"/>
<field name="current_session_state"/>
<field name="last_session_closing_date"/>