Some overrides of search might allow to sort on non sortable fields like my_activity_date_deadline on crm_lead. An option allow_order was used to indicate that to the legacy list view. The new list view introduced with https://github.com/odoo/odoo/commit/bc0a0cead62edd1e0b299fb9a90cd21792814618 no longer consider that option and consequently the Pipeline list view of crm can now longer be sorted by my_activity_date_deadline. The same happens in some other views. In this commit, we reintroduce the use of that option in the list view and fix that problem. closes odoo/odoo#101837 X-original-commit: 52481d55ef857ffc1004d27216cbf6b81a527b14 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>