[FIX] project: fix opening of project from list view

steps:
project > kanban card > task analysis > list view of report

cause:
trying to open a project from the list view

issue:
looking for __count in read_group

fix:
add no_open to project_id in the list view because we can open a project from
kanban card and configuration

task-3111378

closes odoo/odoo#117773

X-original-commit: aa051ccf9566cb0eb74d6357de7f069165349e48
Related: odoo/enterprise#39360
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Pratik Awasthi
2023-04-06 11:46:57 +02:00
parent 87e2bb4f15
commit 0e2c84592f
@@ -27,10 +27,10 @@
<field name="name">report.project.task.user.view.tree</field>
<field name="model">report.project.task.user</field>
<field name="arch" type="xml">
<tree string="Tasks Analysis" create="false" editable="top" delete="false">
<tree string="Tasks Analysis" create="false" editable="top" delete="false" edit="false">
<field name="name"/>
<field name="partner_id" optional="hide"/>
<field name="project_id" optional="show"/>
<field name="project_id" options="{'no_open': True}" optional="show"/>
<field name="user_ids" optional="show" widget="many2many_avatar_user"/>
<field name="stage_id" optional="show"/>
<field name="company_id" optional="show" groups="base.group_multi_company"/>