Before this commit, when the user clicks on the expense row shown in the project profitability displayed in the right side panel of the project update. The action displays the list view instead of directly the form view. This commit checks the number of records is equal to one to display the form view directly if the number is one. task-2814466 Part-of: odoo/odoo#88219