From 65b67d4cbbf6eb7eef58dc8824373c91b167fa61 Mon Sep 17 00:00:00 2001 From: "Pierrot (prro)" Date: Fri, 3 Jun 2022 09:08:35 +0000 Subject: [PATCH] [IMP] account: improve invoice UX Improvements to the account move form: - "Reconciled Entries" button -> "Reconciled Items", and goes now to the Journal Items list view grouped by Matching number - Removed the unwanted margin next to the "Journal Items" table (in the "Journal Items" tab) - the partner can be hidden, in the Journal Items list view task-2855459 Part-of: odoo/odoo#92852 --- addons/account/models/account_move.py | 2 +- addons/account/views/account_move_views.xml | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index fe03b179b2a..2cbab458eef 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -5714,7 +5714,7 @@ class AccountMoveLine(models.Model): return ids def open_reconcile_view(self): - action = self.env['ir.actions.act_window']._for_xml_id('account.action_account_moves_all_a') + action = self.env['ir.actions.act_window']._for_xml_id('account.action_account_moves_all_grouped_matching') ids = self._reconciled_lines() action['domain'] = [('id', 'in', ids)] return action diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 35170fdb06d..bf194e4561e 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -743,7 +743,7 @@ icon="fa-bars" type="object" attrs="{'invisible': ['|', '|', ('move_type', '!=', 'entry'), ('id', '=', False), ('has_reconciled_entries', '=', False)]}" - string="Reconciled Entries"> + string="Reconciled Items">