From 2ba0446f9a89957e8ea4acade7c9e1de429015a5 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 23 Feb 2023 08:48:34 +0000 Subject: [PATCH] [FIX] account: Display Customer or Vendor in account.move list view Steps to reproduce the bug: - Let's consider an analytic account AA linked to customer invoices - Open AA and click on the smart button Customer Invoies Bug: The field customer was not displayed in the account.move list view (same for Vendor Bills) opw:3179200 closes odoo/odoo#123382 X-original-commit: 8ab9798269513a8bedee7874d1305b1a71b29052 Signed-off-by: Nicolas Lempereur (nle) --- addons/account/models/account_analytic_account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/models/account_analytic_account.py b/addons/account/models/account_analytic_account.py index 4113c5dd03f..4f797e5751c 100644 --- a/addons/account/models/account_analytic_account.py +++ b/addons/account/models/account_analytic_account.py @@ -74,7 +74,7 @@ class AccountAnalyticAccount(models.Model): "type": "ir.actions.act_window", "res_model": "account.move", "domain": [('id', 'in', move_ids)], - "context": {"create": False}, + "context": {"create": False, 'default_move_type': 'out_invoice'}, "name": _("Customer Invoices"), 'view_mode': 'tree,form', } @@ -91,7 +91,7 @@ class AccountAnalyticAccount(models.Model): "type": "ir.actions.act_window", "res_model": "account.move", "domain": [('id', 'in', move_ids)], - "context": {"create": False}, + "context": {"create": False, 'default_move_type': 'in_invoice'}, "name": _("Vendor Bills"), 'view_mode': 'tree,form', }