diff options
| author | Denis Ledoux <dle@odoo.com> | 2018-06-21 15:02:30 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2018-06-21 15:07:24 +0200 |
| commit | 5c70cc24b3ce27ea28c19a53c1886720d56ca0d2 (patch) | |
| tree | 9a98cec0d7956566ae046f7d86c9f9e132786585 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | c70db5d5df45a5cf8bd3b289ed076e32a299ea81 (diff) | |
[FIX] point_of_sale: performance improvement to read one session
The fact the pos config name get was doing
`config.session_ids[0].state`
led to the prefetch of fields of all the session_ids of this config
on reading `config_id` for the session form
Therefore, if a pos config had 1000 sessions,
it was prefetching fields of 1000 sessions when you actually
wanted only one session to display in the form.
Among others, the `picking_count` field which is
not stored and quite heavy to compute
In term of time, it went from 1 minute to 1 second
to open the form view of one pos session.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
