From b7d8092b61c3de4980bbbab4a645c806b61b9e48 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Fri, 1 Jul 2022 13:53:14 +0200 Subject: [PATCH] [IMP] Make rma order view cleaner for user Hide button and fields depending on the policy chosen on the rma line --- rma_sale/views/rma_order_line_view.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rma_sale/views/rma_order_line_view.xml b/rma_sale/views/rma_order_line_view.xml index 2a8b36df..4d0f3322 100644 --- a/rma_sale/views/rma_order_line_view.xml +++ b/rma_sale/views/rma_order_line_view.xml @@ -41,7 +41,7 @@ /> - + @@ -50,7 +50,11 @@ - + @@ -67,13 +71,13 @@ name="%(action_rma_order_line_make_sale_order)d" string="Create Sales Quotation" class="oe_highlight" - attrs="{'invisible':['|', ('qty_to_sell', '=', 0), ('state', '!=', 'approved')]}" + attrs="{'invisible':['|', '|', ('qty_to_sell', '=', 0), ('state', '!=', 'approved'), ('sale_policy', '=', 'no')]}" type="action" />