[MERGE] master
authorqdp-odoo <qdp@openerp.com>
Fri, 30 May 2014 14:52:03 +0000 (16:52 +0200)
committerqdp-odoo <qdp@openerp.com>
Fri, 30 May 2014 15:05:44 +0000 (17:05 +0200)
1  2 
addons/stock/product.py
addons/stock/product_view.xml
addons/stock/stock_view.xml

Simple merge
              </field>
          </record>
  
+         <record model="ir.ui.view" id="product_form_view_procurement_button">
+             <field name="name">product.product.procurement</field>
+             <field name="model">product.product</field>
+             <field name="inherit_id" ref="product.product_normal_form_view"/>
+             <field name="arch" type="xml">
+                 <group name="status" position="before" version="7.0">
+                     <group name="lot" groups="stock.group_tracking_lot,stock.group_production_lot" string="Lots">
+                         <field name="track_all" groups="stock.group_production_lot"/>
+                         <field name="track_incoming" groups="stock.group_production_lot" attrs="{'invisible': [('track_all', '=', True)]}"/>
+                         <field name="track_outgoing" groups="stock.group_production_lot" attrs="{'invisible': [('track_all', '=', True)]}"/>
+                     </group>
+                 </group>
+                 <xpath expr="//div[@name='buttons']" position="inside">
 -                   <button class="oe_inline oe_stat_button" string="Current Stock" name="%(product_open_quants)d" type="action"  attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_locations" icon="fa-bank"/>
 -                   <button class="oe_inline oe_stat_button" string="Moves" name= "%(act_product_stock_move_open)d" type="action" attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_stock_user" icon="fa-arrows-h"/>
++                   <button class="oe_stat_button"
++                           name="%(product_open_quants)d"
++                           icon="fa-bank"
++                           type="action"  attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_locations">
++                    <div><field name="qty_in_stock"/></div>
++                    </button>
++                   <button class="oe_inline oe_stat_button" string="Moves" name= "%(act_product_stock_move_open)d" type="action" attrs="{'invisible':[('type', '=', 'service')]}" groups="stock.group_stock_user" icon="fa-arrows-v"/>
+                    <button class="oe_inline oe_stat_button" name="%(product_open_orderpoint)d" type="action" 
+                         attrs="{'invisible':[('type', '=', 'service')]}" icon="fa-pinterest" string="Reordering Rules"/>
+                 </xpath>
+             </field>
+         </record>
      </data>
 -</openerp>
 +</openerp>
Simple merge