diff --git a/rma_sale/views/rma_order_view.xml b/rma_sale/views/rma_order_view.xml index c826ba13..4d8618d0 100644 --- a/rma_sale/views/rma_order_view.xml +++ b/rma_sale/views/rma_order_view.xml @@ -12,6 +12,7 @@ class="oe_stat_button" icon="fa-pencil-square-o" groups="sales_team.group_sale_salesman" + attrs="{'invisible':[('type', '!=', 'customer')]}" > diff --git a/rma_sale/wizards/rma_add_sale.xml b/rma_sale/wizards/rma_add_sale.xml index 75fbe70c..0e823ec0 100644 --- a/rma_sale/wizards/rma_add_sale.xml +++ b/rma_sale/wizards/rma_add_sale.xml @@ -114,6 +114,7 @@ name="%(action_rma_add_sale)d" string="Add From Sale Order" type="action" + attrs="{'invisible':[('type', '!=', 'customer')]}" />