From b7504cc2e24c63768997e37836377d6fdebf72d3 Mon Sep 17 00:00:00 2001 From: Mitali Patel Date: Thu, 23 May 2019 11:47:21 +0000 Subject: [PATCH] [IMP] sale: no variant creation from stat button action Purpose of this commit is to prevent creating and importing new variants from the variant list view when you open it with the variant state button becuase record not save while creating a new variants on the fly from a product template. task-1916037 closes odoo/odoo#33619 Signed-off-by: Damien Bouvy (dbo) --- addons/product/views/product_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index cb1043411e9..536d5bc9be9 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -330,7 +330,7 @@ Product Variants ir.actions.act_window product.product - {'search_default_product_tmpl_id': [active_id], 'default_product_tmpl_id': active_id} + {'search_default_product_tmpl_id': [active_id], 'default_product_tmpl_id': active_id, 'create': False}