-
- Downloads
[FIX] mail, web: fix activities count when they are uniquified
Issue - Install CRM for example - Add 41 leads - Create an activity on each of them Everything ok, load more shows up - Add another activity on one of them Load more doesn't shows up Cause The uniquify method: https://github.com/odoo/odoo/blob/saas-12.3/odoo/models.py#L4187:#L4191 Consider the second activity as a duplicate and removes it. So, in `web_search_read`: `len(records) <= limit` is `True` and we ignore all the others records Solution Add `force_search_count` in the context when using this action to avoid uniquify to falsify the records length. I added the tree view for this action too. It improves UX. OPW-2165455 closes odoo/odoo#43149 X-original-commit: 13ec3503fbfb5d3d2b1e824059737bd866a3a9f4 Signed-off-by:Jason Van Malder <jvm-odoo@users.noreply.github.com>
Showing
- addons/mail/static/src/js/systray/systray_activity_menu.js 4 additions, 1 deletionaddons/mail/static/src/js/systray/systray_activity_menu.js
- addons/mail/static/tests/systray/systray_activity_menu_tests.js 4 additions, 0 deletions.../mail/static/tests/systray/systray_activity_menu_tests.js
- addons/web/models/models.py 1 addition, 1 deletionaddons/web/models/models.py
Please register or sign in to comment