From ca666a7778424a68da14e3137324d6001aaae542 Mon Sep 17 00:00:00 2001 From: Nisha patel Date: Fri, 13 Mar 2020 11:09:55 +0000 Subject: [PATCH] [IMP] sale: hide cancel button if record not saved Purpose of this task is to clean up the orders interface with keeping just the needed action buttons. So in this commit we hide cancel button if the order is not saved yet. it will also hide the cancel button for the rental order. closes odoo/odoo#47579 Taskid: 2080191 Closes: #47579 Signed-off-by: Yannick Tivisse (yti) --- addons/sale/views/sale_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index e0a86e5d9ac..e97d64bb4bf 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -277,7 +277,7 @@ attrs="{'invisible': [('state', 'not in', ['draft'])]}"/>