Hide smart button when empty

This commit is contained in:
Florian da Costa
2022-06-08 15:55:52 +02:00
committed by AaronHForgeFlow
parent 6654e32c50
commit f4a7817dbe

View File

@@ -30,6 +30,7 @@
name="action_view_invoice"
class="oe_stat_button"
icon="fa-pencil-square-o"
attrs="{'invisible': [('account_move_line_id', '=', False)]}"
string="Origin Inv"
>
</button>
@@ -38,6 +39,7 @@
name="action_view_refunds"
class="oe_stat_button"
icon="fa-pencil-square-o"
attrs="{'invisible': [('refund_count', '=', 0)]}"
groups="account.group_account_invoice"
>
<field name="refund_count" widget="statinfo" string="Refunds" />