From 6485acb737229b1cba7f825070eae698286fd3e8 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 2 Jan 2023 10:24:49 +0100 Subject: [PATCH] [IMP] rma_sale: adapt to changes in supplier rma group form view. --- rma_sale/views/rma_order_view.xml | 1 + rma_sale/wizards/rma_add_sale.xml | 1 + 2 files changed, 2 insertions(+) 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')]}" />