mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Hide smart button when empty
This commit is contained in:
committed by
AaronHForgeFlow
parent
6654e32c50
commit
f4a7817dbe
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user