Skip to content

Commit

Permalink
Merge PR #1152 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rafaelbn
  • Loading branch information
OCA-git-bot committed Dec 5, 2024
2 parents 21a3c98 + 917d163 commit 402646c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contract/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 402646c

Please sign in to comment.