From 9fa1f8f97001500577d4d359404faed9ef0328a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Tarroja=20Caubet?= Date: Mon, 11 Apr 2022 20:13:16 +0200 Subject: [PATCH] Mute reconciled payable/receivable lines issue10951 review364371002 --- account.py | 9 +++++++++ view/move_line_list_to_pay.xml | 5 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/account.py b/account.py index 9c0ed2110b..23dbeb8bde 100644 --- a/account.py +++ b/account.py @@ -246,6 +246,15 @@ class MoveLine(metaclass=PoolMeta): super(MoveLine, cls).__setup__() cls._check_modify_exclude.add('invoice_payment') + @classmethod + def _view_reconciliation_muted(cls): + pool = Pool() + ModelData = pool.get('ir.model.data') + muted = super()._view_reconciliation_muted() + muted.add(ModelData.get_id( + 'account_invoice', 'move_line_view_list_to_pay')) + return muted + @classmethod def _get_origin(cls): return super()._get_origin() + [ diff --git a/view/move_line_list_to_pay.xml b/view/move_line_list_to_pay.xml index 027c0822bd..a78fe76e77 100644 --- a/view/move_line_list_to_pay.xml +++ b/view/move_line_list_to_pay.xml @@ -3,8 +3,7 @@ this repository contains the full copyright notices and license terms. --> - - + - +