Skip to content
Snippets Groups Projects
Unverified Commit 6dec0bc3 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] calendar: compare display_name for empty recordset

When sorting by a many2many fields (e.g. partner_ids) with one of the record
having an empty value on the sorted field, the comparison method used to compare
and empty record (e.g. res.partner()) and a name_get result (e.g. "Agrolait").

This is because the sort_field was initialized with the result of self[field]
but never assigned a new value below.

Fallback on an empty string when no record is found

Fixes #26908
parent 69af1df7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment