From 7a3271c4b381e85f115cbd3c0a27be9e4e581ec5 Mon Sep 17 00:00:00 2001 From: Arjan Duijs Date: Thu, 10 Dec 2015 12:51:33 -0500 Subject: [PATCH] Updated to be compatible with 9.0 --- .../views/product_view.xml | 46 +++++++++++++++++-- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/product_variants_no_automatic_creation/views/product_view.xml b/product_variants_no_automatic_creation/views/product_view.xml index 773b647b..968cd1d4 100644 --- a/product_variants_no_automatic_creation/views/product_view.xml +++ b/product_variants_no_automatic_creation/views/product_view.xml @@ -17,18 +17,54 @@ product.template - - - - + + + + + + + + + product.product.variants.form + product.product + + + + {'invisible':['|',('id','!=',False),('product_tmpl_id','!=',False)],'readonly':[('product_tmpl_id','!=',False)]} + + + + {'readonly':[('id','!=',False)],'required':[('id','!=',False)]} + + +

+ Select a template for a variant. Keep empty for a new full product. +

+
+ +