[IMP] hide Storage Location entire group in the inventory for products of type servic...
authorForam Katharotiya (OpenERP) <fka@tinyerp.com>
Fri, 12 Apr 2013 07:05:48 +0000 (12:35 +0530)
committerForam Katharotiya (OpenERP) <fka@tinyerp.com>
Fri, 12 Apr 2013 07:05:48 +0000 (12:35 +0530)
bzr revid: fka@tinyerp.com-20130412070548-3wh0mi5k32la17yk

addons/stock/product_view.xml

index dc80c0f..6348858 100644 (file)
@@ -72,6 +72,9 @@
                    <button string="Inventory" name="%(action_product_location_tree)d" type="action"  attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_locations"/>
                    <button string="Moves" name= "%(act_product_stock_move_open)d" type="action" attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_stock_user"/>
                 </xpath>
+                <field name="list_price" position="after">
+                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
+                </field>
                 <group name="procurement_uom" position="before">
                     <group name="delay" string="Delays">
                         <label for="produce_delay" attrs="{'invisible':[('type','=','service')]}"/>
                     </group>
                 </group>
                 <group name="status" position="after" version="7.0">
-                     <group name="store" string="Storage Location">
-                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
-                         <field name="loc_rack" attrs="{'invisible':[('type','=','service')]}"/>
-                         <field name="loc_row" attrs="{'invisible':[('type','=','service')]}"/>
-                         <field name="loc_case" attrs="{'invisible':[('type','=','service')]}"/>
+                     <group name="store" string="Storage Location" attrs="{'invisible':[('type','=','service')]}">
+                         <field name="loc_rack"/>
+                         <field name="loc_row"/>
+                         <field name="loc_case"/>
                      </group>
                 </group>
                 <group name="Weights" position="after">