This commit will fix the following bugs: - prevents a traceback to appear when clicking on View Task button in sub-tasks tab when in project sharing - adds a forgotten state display in the sub-tasks tab in project sharing (was missing) - in the kanban card sub-tasks dropdown, only the sub-tasks without project should toggle from In Progress to Done (previously every subtask toggled) Task-3280844 closes odoo/odoo#128385 X-original-commit: 928c8cc2ac83c5ac4a175848b1ac862e9b914daa Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>