[FIX] Do not show New Refund button if there is no invoice attached to the claim

This commit is contained in:
George Daramouskas
2018-03-29 11:43:47 +02:00
committed by Holger Brunn
parent 942875ea53
commit d67e48122e

View File

@@ -84,6 +84,7 @@
<button name="%(account.action_account_invoice_refund)d"
class="oe_inline"
type='action' string='New Refund'
attrs="{'invisible': [('invoice_id', '=', False)]}"
context="{
'invoice_ids': [invoice_id],
'claim_line_ids': claim_line_ids,