From a452ff9d9010b1705de00ea469b1e4eca392233c Mon Sep 17 00:00:00 2001 From: "Darshan Kalola (OpenERP)" Date: Wed, 15 Jan 2014 12:29:49 +0530 Subject: [PATCH] [IMP]remove domain from product_variant_ids and improve view. bzr revid: dka@tinyerp.com-20140115065949-8vnj4lvmsiq5vixr --- addons/product/product.py | 2 +- addons/product/product_view.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index c4049fb4b8d..24b0a9965fc 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -440,7 +440,7 @@ class product_template(osv.osv): help="Small-sized image of the product. It is automatically "\ "resized as a 64x64px image, with aspect ratio preserved. "\ "Use this field anywhere a small image is required."), - 'product_variant_ids': fields.one2many('product.product', 'product_tmpl_id', 'Product Variants', domain = [('variants','!=','')], required=True), + 'product_variant_ids': fields.one2many('product.product', 'product_tmpl_id', 'Product Variants', required=True), } def _get_uom_id(self, cr, uid, *args): diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index c2d6e49c014..ac1646d6e7e 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -849,9 +849,9 @@ - + - +