[FIX] product, stock: set active field in default product view, instead of inherited...
authorDenis Ledoux <dle@openerp.com>
Tue, 8 Apr 2014 18:09:20 +0000 (20:09 +0200)
committerDenis Ledoux <dle@openerp.com>
Tue, 8 Apr 2014 18:09:20 +0000 (20:09 +0200)
The active field was placed in the Delays section, which does not make sense
Besides, we should be able to disable products by default, not when stock is installed.

bzr revid: dle@openerp.com-20140408180920-jpl50ups6ro1z4qp

addons/product/product_view.xml
addons/stock/product_view.xml

index 4946a71..c547a61 100644 (file)
                                         </div>
                                         <field name="company_id" groups="base.group_multi_company" widget="selection"
                                             attrs="{'invisible': [('is_only_child', '=', False)]}"/>
+                                        <field name="active" />
                                     </group>
                                 </group>
                                 <field name="description" placeholder="describe the product characteristics..."
index 11f970d..2efd1c8 100644 (file)
@@ -82,7 +82,6 @@
                         <div attrs="{'invisible':[('type','=','service')]}">
                             <field name="produce_delay" class="oe_inline"/> days
                         </div>
-                        <field name="active"/>
                     </group>
                 </group>
                 <xpath expr="//group[@string='Sale Conditions']" position="inside">