[FIX] *: disable linking on some graph views

For the graph views based on reporting models (e.g sale.report), click
on a group in the chart redirects the user to an "empty" list view. Here
we use the attribute disable_linking to avoid that redirection for those
views.

Task ID: 2336960

closes odoo/odoo#57622

X-original-commit: 0b0ae92b6bdac25843ba24d767dbcab3b75703e5
Related: odoo/enterprise#13192
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Mathieu Duckerts-Antoine
2020-09-14 10:01:49 +00:00
parent 6feb841a7c
commit e56a095f16
14 changed files with 14 additions and 14 deletions
@@ -17,7 +17,7 @@
<field name="name">account.invoice.report.graph</field>
<field name="model">account.invoice.report</field>
<field name="arch" type="xml">
<graph string="Invoices Analysis" type="line" sample="1">
<graph string="Invoices Analysis" type="line" sample="1" disable_linking="1">
<field name="product_categ_id"/>
<field name="price_subtotal" type="measure"/>
</graph>
@@ -5,7 +5,7 @@
<field name="name">crm.activity.report.graph</field>
<field name="model">crm.activity.report</field>
<field name="arch" type="xml">
<graph string="Activities Analysis" stacked="True" sample="1">
<graph string="Activities Analysis" stacked="True" sample="1" disable_linking="1">
<field name="mail_activity_type_id" type="col"/>
<field name="date" interval="month" type="row"/>
</graph>
@@ -6,7 +6,7 @@
<field name="model">report.project.task.user</field>
<field name="inherit_id" ref="project.view_task_project_user_graph" />
<field name="arch" type="xml">
<graph string="Tasks Analysis" type="bar" sample="1">
<graph string="Tasks Analysis" type="bar" sample="1" disable_linking="1">
<field name="project_id" position="after">
<field name="hours_planned" type="measure"/>
<field name="remaining_hours" type="measure"/>
@@ -18,7 +18,7 @@
<field name="name">im_livechat.report.channel.graph</field>
<field name="model">im_livechat.report.channel</field>
<field name="arch" type="xml">
<graph string="Livechat Support Statistics" sample="1">
<graph string="Livechat Support Statistics" sample="1" disable_linking="1">
<field name="technical_name"/>
<field name="nbr_message" type="measure"/>
</graph>
@@ -18,7 +18,7 @@
<field name="name">im_livechat.report.operator.graph</field>
<field name="model">im_livechat.report.operator</field>
<field name="arch" type="xml">
<graph string="Livechat Support Statistics" sample="1">
<graph string="Livechat Support Statistics" sample="1" disable_linking="1">
<field name="partner_id"/>
<field name="nbr_channel" type="measure"/>
</graph>
@@ -20,7 +20,7 @@
<field name="name">mailing.trace.report.view.graph</field>
<field name="model">mailing.trace.report</field>
<field name="arch" type="xml">
<graph string="Mass Mailing Statistics" sample="1">
<graph string="Mass Mailing Statistics" sample="1" disable_linking="1">
<field name="campaign"/>
<field name="sent" type="measure"/>
</graph>
@@ -50,7 +50,7 @@
<field name="name">report.membership.graph1</field>
<field name="model">report.membership</field>
<field name="arch" type="xml">
<graph string="Membership" sample="1">
<graph string="Membership" sample="1" disable_linking="1">
<field name="membership_id" type="row"/>
<field name="start_date" interval="month" type="col"/>
<field name="quantity" type="measure"/>
@@ -18,7 +18,7 @@
<field name="name">report.pos.order.graph</field>
<field name="model">report.pos.order</field>
<field name="arch" type="xml">
<graph string="Point of Sale Analysis" sample="1">
<graph string="Point of Sale Analysis" sample="1" disable_linking="1">
<field name="product_categ_id" type="row"/>
<field name="price_total" type="measure"/>
</graph>
@@ -15,7 +15,7 @@
<field name="name">report.project.task.user.graph</field>
<field name="model">report.project.task.user</field>
<field name="arch" type="xml">
<graph string="Tasks Analysis" type="bar" sample="1">
<graph string="Tasks Analysis" type="bar" sample="1" disable_linking="1">
<field name="project_id" type="row"/>
<field name="user_id" type="col"/>
<field name="nbr" type="measure"/>
@@ -16,7 +16,7 @@
<field name="name">product.month.graph</field>
<field name="model">purchase.report</field>
<field name="arch" type="xml">
<graph string="Purchase Orders Statistics" type="line" sample="1">
<graph string="Purchase Orders Statistics" type="line" sample="1" disable_linking="1">
<field name="date_approve" interval="day" type="col"/>
<field name="untaxed_total" type="measure"/>
</graph>
+1 -1
View File
@@ -17,7 +17,7 @@
<field name="name">sale.report.graph</field>
<field name="model">sale.report</field>
<field name="arch" type="xml">
<graph string="Sales Analysis" type="line" sample="1">
<graph string="Sales Analysis" type="line" sample="1" disable_linking="1">
<field name="date" type="row" interval="day"/>
<field name="price_subtotal" type="measure"/>
</graph>
@@ -18,7 +18,7 @@
<field name="name">project.profitability.report.graph</field>
<field name="model">project.profitability.report</field>
<field name="arch" type="xml">
<graph string="Profitability Analysis" type="bar" sample="1">
<graph string="Profitability Analysis" type="bar" sample="1" disable_linking="1">
<field name="project_id" type="row"/>
<field name="product_id" type="col"/>
<field name="amount_untaxed_to_invoice" type="measure"/>
@@ -44,7 +44,7 @@
<field name="name">sale.report.view.graph.website</field>
<field name="model">sale.report</field>
<field name="arch" type="xml">
<graph string="Sale Report" type="bar" sample="1">
<graph string="Sale Report" type="bar" sample="1" disable_linking="1">
<field name="date"/>
<field name="price_subtotal" type='measure'/>
</graph>
@@ -4,7 +4,7 @@
<field name="name">sale.report.view.graph.slides</field>
<field name="model">sale.report</field>
<field name="arch" type="xml">
<graph string="eLearning Sales Analysis" type="line" sample="1">
<graph string="eLearning Sales Analysis" type="line" sample="1" disable_linking="1">
<field name="date" type="row" interval="day"/>
<field name="price_subtotal" type="measure"/>
</graph>