Skip to content

Commit 481a2fa

Browse files
[14.0][IMP] rma_account: hide buttons when count is 0
1 parent 05a81ff commit 481a2fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rma_account/views/rma_order_view.xml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class="oe_stat_button"
1313
icon="fa-pencil-square-o"
1414
groups="account.group_account_invoice"
15+
invisible="invoice_refund_count == 0"
1516
>
1617
<field
1718
name="invoice_refund_count"
@@ -25,6 +26,7 @@
2526
class="oe_stat_button"
2627
icon="fa-pencil-square-o"
2728
groups="account.group_account_invoice"
29+
invisible="invoice_count == 0"
2830
>
2931
<field name="invoice_count" widget="statinfo" string="Origin Inv" />
3032
</button>

0 commit comments

Comments
 (0)