'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">
<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>
<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>
<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>