summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2018-11-28 14:49:44 +0100
committerGitHub <noreply@github.com>2018-11-28 14:49:44 +0100
commit34b26bc7d6ea5b1bca9cab0f0bb41d993984f2af (patch)
tree2fa60f4dced9fdde6bb3ddace473cdbc92b1daab /addons/web/static/src/js/views/basic/basic_model.js
parentd1490e27774193487df81733fdabf5f3d1f97f55 (diff)
parent1d2a4d8459cf07703f22b207b38c483b684a472a (diff)
[IMP] hr_attendance: faster loading of employees kanban view
**Description of the issue/feature this PR addresses:** Addon hr_attendance adds a check_in/check_out status icon in every card of the employee kanban view. The status is figured out using computed field ``attendance_state``, itself relying on a computed Many2one field, ``last_attendance_id``. The current way to compute the latter field seems to fetch all attendances before getting the most recent one. For each employee. Which causes the employee kanban view to load very slowly (~30 sec in 90-employee Camptocamp's instance). This PR suggests to load only the last attendance entry. Co-authored with @guewen **Current behavior before PR:** Employee kanban view loads very slowly. **Desired behavior after PR is merged:** Employee kanban view loads reasonably fast. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#28953
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions