mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Show contract button on partner when they have contracts too
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user