[IMP] add context on product_tmpl_id.
authorAmit Bhavsar (Open ERP) <amb@tinyerp.com>
Wed, 15 Jan 2014 14:12:38 +0000 (19:42 +0530)
committerAmit Bhavsar (Open ERP) <amb@tinyerp.com>
Wed, 15 Jan 2014 14:12:38 +0000 (19:42 +0530)
bzr revid: amb@tinyerp.com-20140115141238-5bydnxn3a2qgfhz6

addons/product/product_view.xml

index ed04abb..71777ee 100644 (file)
@@ -67,7 +67,7 @@
                             </div>
                             <h1>
                                 <field name="name" class="oe_inline"/>
-                                <field name="product_tmpl_id" groups="product.group_product_variant" class="oe_inline"/>
+                                <field name="product_tmpl_id" groups="product.group_product_variant" class="oe_inline" context="{'search_variants':1}"/>
                                 <span attrs="{'invisible':[('variants','=',False)]}" groups="product.group_product_variant"> - </span>
                                 <field name="variants" placeholder="Variant Name" groups="product.group_product_variant" class="oe_inline" readonly="0"/>
                             </h1>