From c32affdc9a1ca98a54941919b107895e8fb459ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 19 Feb 2023 16:49:12 +0100 Subject: [PATCH] Use generic relate from party to invoice Also for relate from party, it gives more information to the user to display the number of pending and done. --- modules/account_invoice/invoice.xml | 46 +++++++++++++++++++++ modules/account_invoice/party.xml | 21 ---------- modules/account_invoice/view/party_form.xml | 2 +- 3 files changed, 47 insertions(+), 22 deletions(-) diff --git a/modules/account_invoice/invoice.xml b/modules/account_invoice/invoice.xml index 262085f5cf..6ad728fd32 100644 --- a/modules/account_invoice/invoice.xml +++ b/modules/account_invoice/invoice.xml @@ -141,6 +141,52 @@ this repository contains the full copyright notices and license terms. --> sequence="10" id="menu_invoice_in_form"/> + + Invoices + account.invoice + + + + + + + + + + + + + + Pending + + + + + + + Paid + + + + + + + All + + + + + + form_relate + party.party,-1 + + + diff --git a/modules/account_invoice/party.xml b/modules/account_invoice/party.xml index c22689a385..1e0602349b 100644 --- a/modules/account_invoice/party.xml +++ b/modules/account_invoice/party.xml @@ -47,26 +47,5 @@ this repository contains the full copyright notices and license terms. --> party_form - - - Invoices - account.invoice - - - - - form_relate - party.party,-1 - - - - - - - diff --git a/modules/account_invoice/view/party_form.xml b/modules/account_invoice/view/party_form.xml index 8e68eb5b1e..ef143ba738 100644 --- a/modules/account_invoice/view/party_form.xml +++ b/modules/account_invoice/view/party_form.xml @@ -3,7 +3,7 @@ this repository contains the full copyright notices and license terms. --> - +