From 01aac8ed9e9727a0577f1c36ca7d6c851723ae91 Mon Sep 17 00:00:00 2001 From: Antoine Boonen Date: Wed, 4 Oct 2023 14:18:24 +0200 Subject: [PATCH] [IMP] *: EDI format for customer list view improvement account_edi_ubl_cii, account_peppol Problem --------- Currently, the tree view for customers does not include information about the EDI format. Only a custom `group_by format` is present which is not user firendly. Objective --------- As we have more and more EDI format following each type of customer, we should add an easy way to manage that directly in the customer list. Solution --------- 1. Extend the `res_partner` search view to add a group_by option on the format. 2. Extend the `res_partner` tree view to add a optional hidden column on the format, and one for the PEPPOL eas, endpoint and endpoint validity. 3. Create a server action that executes `button_account_peppol_check_partner_endpoint` on the selected records in the list view. task-3531419 closes odoo/odoo#137567 Signed-off-by: Quentin De Paoli --- .../views/res_partner_views.xml | 22 ++++++++++++++++ .../views/res_partner_views.xml | 25 +++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/addons/account_edi_ubl_cii/views/res_partner_views.xml b/addons/account_edi_ubl_cii/views/res_partner_views.xml index b8cb8ac6810..1d5369217e1 100644 --- a/addons/account_edi_ubl_cii/views/res_partner_views.xml +++ b/addons/account_edi_ubl_cii/views/res_partner_views.xml @@ -15,4 +15,26 @@ + + + res.partner.search.inherit + res.partner + + + + + + + + + + res.partner.tree.inherit + res.partner + + + + + + + diff --git a/addons/account_peppol/views/res_partner_views.xml b/addons/account_peppol/views/res_partner_views.xml index 82e5b46f95f..87982a5166a 100644 --- a/addons/account_peppol/views/res_partner_views.xml +++ b/addons/account_peppol/views/res_partner_views.xml @@ -29,4 +29,29 @@ + + + res.partner.tree.inherit + res.partner + + + + + + + + + + + + Verify Peppol + + + list + code + + for record in records: + action = record.button_account_peppol_check_partner_endpoint() + +