[FIX] project_issue: link to issues
On the project dashboard, a user needs to click exactly on the number or on the label in order to open the issue list. If the user clicks outside the text (but still inside the box), the project is open instead. The reason is because the link is specifically defined on the number/label. The fix defines the link on the box itself. Fixes #11396 opw-672380
This commit is contained in:
@@ -10,15 +10,13 @@
|
||||
<field name="issue_needaction_count" invisible="1"/>
|
||||
</field>
|
||||
<xpath expr="//div/a[contains(@class, 'o_project_kanban_box')]" position="after">
|
||||
<div t-if="record.use_issues.raw_value" class="o_project_kanban_box">
|
||||
<a name="%(act_project_project_2_project_issue_all)d" type="action">
|
||||
<span class="o_value"><t t-raw="record.issue_ids.raw_value.length"/></span>
|
||||
<span class="o_label"><field name="label_issues"/></span>
|
||||
</a>
|
||||
<a t-if="record.use_issues.raw_value" class="o_project_kanban_box" name="%(act_project_project_2_project_issue_all)d" type="action">
|
||||
<span class="o_value"><t t-raw="record.issue_ids.raw_value.length"/></span>
|
||||
<span class="o_label"><field name="label_issues"/></span>
|
||||
<a t-if="record.issue_needaction_count.raw_value" class="o_needaction" name="%(act_project_project_2_project_issue_all)d" type="action" context="{'search_default_message_needaction': 1}">
|
||||
<t t-esc="record.issue_needaction_count.raw_value"/>
|
||||
</a>
|
||||
</div>
|
||||
</a>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[contains(@class, 'o_kanban_manage_reports')]" position="inside">
|
||||
@@ -29,4 +27,4 @@
|
||||
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user