From 81c380af45c33a310e7315e47d901a1af949e7ae Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Wed, 8 Jun 2022 15:55:52 +0200 Subject: [PATCH] Hide smart button when empty --- rma_account/views/rma_order_line_view.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rma_account/views/rma_order_line_view.xml b/rma_account/views/rma_order_line_view.xml index dd74d94f..e701fea0 100644 --- a/rma_account/views/rma_order_line_view.xml +++ b/rma_account/views/rma_order_line_view.xml @@ -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" > @@ -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" >