Merge PR #1152 into 16.0

Signed-off-by rafaelbn
This commit is contained in:
OCA-git-bot
2024-12-05 10:28:29 +00:00

View File

@@ -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"
>
<field
@@ -40,7 +40,7 @@
groups="account.group_account_invoice"
icon="fa-book"
context="{'default_contract_type': 'purchase', 'contract_type': 'purchase'}"
attrs="{'invisible': [('supplier_rank','=',0)]}"
attrs="{'invisible': [('supplier_rank','=',0), ('purchase_contract_count','=',0)]}"
help="Show the purchase contracts for this partner"
>
<field