[MIG] helpdesk_sales: for Odoo 12.0

Additionally hide button if there is no assigned customer
This commit is contained in:
Connor Christian
2020-10-30 15:00:54 -04:00
parent 1ade5ef2c4
commit 18cb605184
2 changed files with 2 additions and 1 deletions

View File

@@ -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>