diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 05fe10fe98e7ec95bb45e16a7c5868c60f8ccf31..5081491c6d2a756fd11fc57fd5889443515a10d8 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -3,10 +3,10 @@ <data> <menuitem icon="terp-stock" id="menu_stock_root" name="Warehouse" sequence="2"/> <menuitem id="menu_stock_warehouse_mgmt" name="Warehouse Management" parent="menu_stock_root" sequence="1"/> - <menuitem id="menu_stock_product" name="Product" parent="menu_stock_root" sequence="3"/> + <menuitem id="menu_stock_product" name="Product" parent="menu_stock_root" sequence="4"/> <menuitem action="product.product_normal_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/> <menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="6"/> - <menuitem id="menu_stock_inventory_control" name="Inventory Control" parent="menu_stock_root" sequence="2"/> + <menuitem id="menu_stock_inventory_control" name="Inventory Control" parent="menu_stock_root" sequence="3"/> <record id="stock_inventory_line_tree" model="ir.ui.view"> <field name="name">stock.inventory.line.tree</field> @@ -180,7 +180,7 @@ <field name="view_type">form</field> <field name="view_id" ref="view_tracking_tree"/> </record> - <menuitem id="menu_traceability" name="Traceability" parent="menu_stock_root" sequence="4"/> + <menuitem id="menu_traceability" name="Traceability" parent="menu_stock_root" sequence="2"/> <menuitem action="action_tracking_form" id="menu_action_tracking_form" groups="base.group_extended" parent="menu_traceability"/> @@ -1301,7 +1301,7 @@ <field name="name" string="Move Name"/> <field name="product_id"/> <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> - <field name="product_uom" string="UOM"/> + <field name="product_uom" string="Unit Of Measure"/> <field name="picking_id" select="1"/> <field name="prodlot_id" groups="base.group_extended"/> <field name="location_id"/> @@ -1328,14 +1328,14 @@ <field name="name"/> <field name="product_id" select="1" on_change="onchange_product_id(product_id,location_id,location_dest_id)"/> <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> - <field name="product_uom" string="Unit Of Measure"/> - <field name="product_uos" groups="base.group_extended"/> + <field name="product_uom" string="Unit Of Measure" widget="selection"/> + <field name="product_uos" groups="base.group_extended" /> </group> <group colspan="2" col="2"> <separator string="Locations & Picking" colspan="2" /> - <field name="location_id" select="1"/> - <field name="location_dest_id" select="1"/> + <field name="location_id" select="1" widget="selection"/> + <field name="location_dest_id" select="1" widget="selection"/> <field name="picking_id"/> <field name="address_id" context="{'contact_display':'partner'}"/> <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/> @@ -1381,11 +1381,11 @@ <field name="arch" type="xml"> <search string="Stock Moves"> <group col="8" colspan="4"> - <filter icon="terp-stock" string="Available" domain="[('state','=','done')]" help="Done"/> + <filter icon="terp-stock" string="Available" name="Available" domain="[('state','=','assigned')]" help="Available"/> <separator orientation="vertical"/> + <field name="product_id"/> <field name="location_id"/> <field name="location_dest_id"/> - <field name="product_id"/> </group> <newline/> <group expand="1" string="Group By..." colspan="4" col="8"> @@ -1407,6 +1407,7 @@ <field name="view_type">form</field> <field name="view_id" ref="view_move_tree"/> <field name="search_view_id" ref="view_move_search"/> + <field name="context">{'search_default_Available':1}</field> </record> <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="1"/> @@ -1426,7 +1427,7 @@ <field name="partner_id" string="Supplier"/> <field name="product_id"/> <field name="product_qty" /> - <field name="product_uom" string="UOM"/> + <field name="product_uom" string="Uint Of Measure"/> <field name="prodlot_id" string="Lot" groups="base.group_extended"/> <field name="date_planned"/> <field name="backorder_id" groups="base.group_extended"/>