Modifs
authorFabien Pinckaers <fp@tinyerp.com>
Mon, 1 Sep 2008 07:30:47 +0000 (09:30 +0200)
committerFabien Pinckaers <fp@tinyerp.com>
Mon, 1 Sep 2008 07:30:47 +0000 (09:30 +0200)
bzr revid: fp@tinyerp.com-20080901073047-mjtabn8119dbqiaf

1  2 
addons/mrp/mrp.py
addons/mrp/mrp_view.xml
addons/mrp_operations/mrp_operations_view.xml

@@@ -668,9 -668,9 +668,9 @@@ class mrp_procurement(osv.osv)
          'date_close': fields.date('Date Closed'),
          'product_id': fields.many2one('product.product', 'Product', required=True),
          'product_qty': fields.float('Quantity', required=True),
--        'product_uom': fields.many2one('product.uom', 'Product UOM', required=True),
--        'product_uos_qty': fields.float('Quantity'),
--        'product_uos': fields.many2one('product.uom', 'Product UOM'),
++        'product_uom': fields.many2one('product.uom', 'Product UoM', required=True),
++        'product_uos_qty': fields.float('UoS Quantity'),
++        'product_uos': fields.many2one('product.uom', 'Product UoS'),
          'move_id': fields.many2one('stock.move', 'Reservation', ondelete='set null'),
  
          'bom_id': fields.many2one('mrp.bom', 'BoM', ondelete='cascade', select=True),
                                                <field name="product_id" on_change="product_id_change(product_id)" select="1"/>
                                                <field name="product_qty"/>
                                                <field name="product_uom"/>
--                                              <group colspan="6" col="6">
--                                                      <label string="" colspan="2"/>
--                                                      <field name="product_uos_qty" groups="product.group_uos"/>
--                                                      <field name="product_uos" groups="product.group_uos"/>
--                                              </group>
++                        <label string="" colspan="2"/>
++                        <field name="product_uos_qty" groups="product.group_uos"/>
++                        <field name="product_uos" groups="product.group_uos"/>
                                        </group>
  
                      <notebook colspan="4">
@@@ -56,7 -56,7 +56,7 @@@
                <field name="name">All Operations</field>
                <field name="type">ir.actions.act_window</field>
                <field name="res_model">mrp.production.workcenter.line</field>
--              <field name="view_type">tree</field>
++              <field name="view_type">form</field>
                <field name="view_mode">tree,form</field>
        </record>
  
@@@ -66,7 -66,7 +66,7 @@@
                <field name="name">Confirm Operations</field>
                <field name="type">ir.actions.act_window</field>
                <field name="res_model">mrp.production.workcenter.line</field>
--              <field name="view_type">tree</field>
++              <field name="view_type">form</field>
                <field name="view_mode">tree,form</field>
                <field name="domain">[('state','=','confirm')]</field>
        </record>
@@@ -77,7 -77,7 +77,7 @@@
                <field name="name">Draft Operations</field>
                <field name="type">ir.actions.act_window</field>
                <field name="res_model">mrp.production.workcenter.line</field>
--              <field name="view_type">tree</field>
++              <field name="view_type">form</field>
                <field name="view_mode">tree,form</field>
                <field name="domain">[('state','=','draft')]</field>
        </record>