From 9224c424878b09f477a1358b7442b13fa4461fa4 Mon Sep 17 00:00:00 2001 From: aliya Date: Mon, 20 Nov 2023 14:56:55 +0000 Subject: [PATCH] [FIX] account_peppol: disable peppol for certain edi formats If the format set on a partner does not work for our peppol implementation, `enable_peppol` should be `False` and the checkbox should be hidden. This commit checks invalid partners when computing `enable_peppol` on account_move_send wizard. Since we hide the checkbox in this case, we don't need to show the peppol warning when opening send&print to such partners. closes odoo/odoo#143565 Signed-off-by: Laurent Smet (las) Signed-off-by: Aliya Tastemirova (alta) --- addons/account_peppol/views/res_partner_views.xml | 4 ++-- addons/account_peppol/wizard/account_move_send.py | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/addons/account_peppol/views/res_partner_views.xml b/addons/account_peppol/views/res_partner_views.xml index e688a40c194..d531e73eed4 100644 --- a/addons/account_peppol/views/res_partner_views.xml +++ b/addons/account_peppol/views/res_partner_views.xml @@ -19,9 +19,9 @@