mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] helpdesk_sales: for Odoo 12.0
Additionally hide button if there is no assigned customer
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<xpath expr="//button[@name='toggle_active']" position="before">
|
||||
<button class="oe_stat_button" type="object" name="action_partner_sales"
|
||||
context="{'search_default_partner_id': partner_id}"
|
||||
attrs="{'invisible': [('partner_id', '=', False)]}"
|
||||
icon="fa-usd">
|
||||
<field string="Sales" name="sale_order_count" widget="statinfo"/>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user