From dae045bf4cd1fd5659e2bfbaf08332fcec3e798a Mon Sep 17 00:00:00 2001 From: David Vidal Date: Tue, 31 Mar 2026 11:58:51 +0200 Subject: [PATCH] [FIX] contract: contracts from partners not yet invoiced When we have a brand new customer or supplier, we could't see their contracts until those are invoiced and the customer/supplier rank counter is started. Better rely on the existing sale/purchase contracts counter. MT-14364 --- contract/views/res_partner_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contract/views/res_partner_view.xml b/contract/views/res_partner_view.xml index 8e4a18ae21..89b1c8eb51 100644 --- a/contract/views/res_partner_view.xml +++ b/contract/views/res_partner_view.xml @@ -14,7 +14,7 @@ groups="account.group_account_invoice" icon="fa-book" context="{'default_contract_type': 'sale', 'contract_type': 'sale'}" - invisible="customer_rank == 0" + invisible="sale_contract_count == 0" help="Show the sale contracts for this partner" >