Before this commit, when the user clicks on the Purchase Order row in costs of project profitability section displayed in right side panel, the action redirects the user to the list view of `Purchase Order Line` even if there is only one record. This commit fixes the issue to display the form view when there is only one record to display. task-2814466 closes odoo/odoo#88219 Related: odoo/enterprise#26004 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>