From 5506ca7479ff2067a72e5d36b488dbb61714c388 Mon Sep 17 00:00:00 2001 From: "Gauthier Wala (gawa)" Date: Thu, 21 Dec 2023 12:02:04 +0100 Subject: [PATCH] [FIX] analytic: gross margin domain empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To reproduce: - Create a new plan with an account - Add an analytic item with this account - Go to the view of this account - Gross Margin Button has a value - Click on it => List is empty The reason being that the view should not include account_id, but auto_account_id closes odoo/odoo#147080 Signed-off-by: William André (wan) --- addons/analytic/views/analytic_line_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/analytic/views/analytic_line_views.xml b/addons/analytic/views/analytic_line_views.xml index 3b2238c2b48..0ecb330c6ce 100644 --- a/addons/analytic/views/analytic_line_views.xml +++ b/addons/analytic/views/analytic_line_views.xml @@ -38,8 +38,8 @@ - {'search_default_group_date': 1, 'default_account_id': active_id} - [('account_id','=', active_id)] + {'search_default_group_date': 1} + [('auto_account_id','=', active_id)] Gross Margin account.analytic.line tree,form,graph,pivot