[MIG] helpdesk_rma: for Odoo 12.0

Additionally hide button if there is no assigned customer
This commit is contained in:
Connor Christian
2020-10-30 14:37:14 -04:00
parent 6844eb8bef
commit ace92d0511
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_rma"
context="{'search_default_partner_id': partner_id}"
attrs="{'invisible': [('partner_id', '=', False)]}"
icon="fa-cubes">
<field string="RMAs" name="rma_count" widget="statinfo"/>
</button>