From 917d1632f4eb6c987f480d0f78fb87d5c07d624b Mon Sep 17 00:00:00 2001 From: Eduardo De Miguel Date: Wed, 4 Dec 2024 10:15:44 +0100 Subject: [PATCH] [FIX] contract: Show contract button on partner when they have contracts too --- 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 5b3340a30..0b1b4ae62 100644 --- a/contract/views/res_partner_view.xml +++ b/contract/views/res_partner_view.xml @@ -19,7 +19,7 @@ groups="account.group_account_invoice" icon="fa-book" context="{'default_contract_type': 'sale', 'contract_type': 'sale'}" - attrs="{'invisible': [('customer_rank','=',0)]}" + attrs="{'invisible': [('customer_rank','=',0), ('sale_contract_count','=',0)]}" help="Show the sale contracts for this partner" >