2010-04-29 13:30:07 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
2010-05-12 14:05:51 +00:00
<data >
2010-04-29 13:30:07 +00:00
<!--
Procurement
-->
2010-05-12 14:05:51 +00:00
2010-04-29 13:30:07 +00:00
<record id= "mrp_procurement_tree_view" model= "ir.ui.view" >
<field name= "name" > mrp.procurement.tree</field>
<field name= "model" > mrp.procurement</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-05-12 14:05:51 +00:00
<tree string= "Procurement Lines" colors= "red:date_planned<current_date and state in ('exception');black:state=='running';green:state=='confirmed';gray:state in ['done','cancel'];blue:state in ('ready')" >
2010-04-29 13:30:07 +00:00
<field name= "date_planned" widget= "date" />
<field name= "origin" />
<field name= "product_id" />
<field name= "product_qty" />
<field name= "product_uom" string= "UOM" />
<field name= "procure_method" />
<field name= "state" />
2010-05-14 13:24:15 +00:00
<field name= "message" />
2010-04-29 13:30:07 +00:00
</tree>
</field>
</record>
<record id= "mrp_procurement_form_view" model= "ir.ui.view" >
<field name= "name" > mrp.procurement.form</field>
<field name= "model" > mrp.procurement</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Procurement" >
<group col= "2" colspan= "2" >
<separator colspan= "2" string= "References" />
2010-05-20 09:34:53 +00:00
<field name= "name" string= "Procurement Reason" />
2010-04-29 13:30:07 +00:00
<field name= "origin" />
2010-05-20 09:34:53 +00:00
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
2010-04-29 13:30:07 +00:00
</group>
<group col= "2" colspan= "2" >
<separator colspan= "2" string= "Planification" />
2010-05-20 09:34:53 +00:00
<field name= "date_planned" />
2010-04-29 13:30:07 +00:00
<field name= "procure_method" />
<field name= "priority" groups= "base.group_extended" />
</group>
<notebook colspan= "4" >
<page string= "Procurement Details" >
<separator colspan= "4" string= "Product & Location" />
2010-05-20 09:34:53 +00:00
<field name= "product_id" on_change= "onchange_product_id(product_id)" />
2010-04-29 13:30:07 +00:00
<field name= "location_id" domain= "[('usage','=','internal')]" />
<field name= "product_qty" />
2010-05-12 14:05:51 +00:00
<field name= "product_uom" widget= "selection" />
2010-04-29 13:30:07 +00:00
2010-05-12 14:05:51 +00:00
<field name= "product_uos_qty" groups= "product.group_uos,base.group_extended" />
<field name= "product_uos" widget= "selection" groups= "product.group_uos,base.group_extended" />
2010-04-29 13:30:07 +00:00
<separator colspan= "4" string= "Status" />
<field colspan= "4" name= "message" readonly= "1" />
<field name= "state" readonly= "1" />
<group col= "7" colspan= "2" >
<button name= "button_confirm" states= "draft" string= "Confirm" icon= "gtk-apply" />
<button name= "button_restart" states= "exception" string= "Retry" icon= "gtk-convert" />
<button name= "button_cancel" states= "draft,exception,waiting" string= "Cancel" icon= "gtk-cancel" />
<button name= "button_check" states= "confirmed" string= "Run Procurement" icon= "gtk-media-play" />
</group>
</page>
<page string= "Extra Information" >
<separator colspan= "4" string= "Details" />
<field name= "move_id" groups= "base.group_extended" />
<field name= "date_close" />
<field name= "close_move" groups= "base.group_extended" />
<group colspan= "4" groups= "base.group_extended" >
<separator colspan= "4" string= "Properties" />
<field colspan= "4" name= "property_ids" nolabel= "1" />
</group>
</page>
<page string= "Notes" >
<separator colspan= "4" string= "Note" />
<field name= "note" colspan= "4" nolabel= "1" />
</page>
</notebook>
</form>
</field>
</record>
<record id= "view_mrp_procurement_filter" model= "ir.ui.view" >
<field name= "name" > mrp.procurement.select</field>
<field name= "model" > mrp.procurement</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Procurement" >
<group col= '10' colspan= '4' >
2010-05-20 09:34:53 +00:00
<filter icon= "terp-mrp" string= "Current" domain= "[('state','in',('draft','confirmed'))]" name= "current" help= "Procurement Orders in draft or open state." />
2010-04-29 13:30:07 +00:00
<filter icon= "terp-mrp" string= "Exceptions" domain= "[('state','=','exception')]" help= "Procurement Orders with exceptions" />
<filter icon= "terp-mrp" string= "Late"
domain="['& ', ('date_planned::date','< ', current_date), ('state', 'in', ('draft', 'confirmed'))]"
help="Procurement started late" />
2010-05-14 13:24:15 +00:00
<filter icon= "terp-mrp" string= "To Fix" domain= "[('state', '=', 'exception'),('message','=','')]" help= "Procurement Orders with exceptions and without message" />
2010-04-29 13:30:07 +00:00
<separator orientation= "vertical" />
<field name= "name" />
<field name= "origin" />
<field name= "product_id" />
<field name= "date_planned" widget= "date" />
<field name= "state" />
</group>
<newline />
2010-05-13 13:29:23 +00:00
<group expand= "1" string= "Group By" colspan= "4" col= "8" groups= "base.group_extended" >
2010-04-29 13:30:07 +00:00
<filter string= "Product" icon= "terp-mrp" domain= "[]" context= "{'group_by':'product_id'}" />
<filter string= "Reason" icon= "terp-mrp" domain= "[]" context= "{'group_by':'name'}" />
<filter string= "Scheduled Date" icon= "terp-mrp" domain= "[]" context= "{'group_by':'date_planned'}" />
2010-05-12 14:05:51 +00:00
<filter string= "State" icon= "terp-mrp" domain= "[]" context= "{'group_by':'state'}" />
2010-04-29 13:30:07 +00:00
</group>
</search>
</field>
</record>
<record id= "mrp_procurement_action" model= "ir.actions.act_window" >
<field name= "name" > Procurement Orders</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > mrp.procurement</field>
<field name= "view_type" > form</field>
<field name= "view_id" eval= "False" />
2010-05-20 09:34:53 +00:00
<field name= "context" > {'search_default_current':1}</field>
2010-04-29 13:30:07 +00:00
<field name= "search_view_id" ref= "view_mrp_procurement_filter" />
2010-05-12 14:05:51 +00:00
<field name= "context" > {'search_default_Current':1}</field>
2010-04-29 13:30:07 +00:00
</record>
<record id= "mrp_procurement_action3" model= "ir.actions.act_window" >
<field name= "name" > Procurements</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > mrp.procurement</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "search_view_id" ref= "view_mrp_procurement_filter" />
<field name= "domain" > []</field>
<field name= "context" > {}</field>
</record>
<record id= "mrp_procurement_action5" model= "ir.actions.act_window" >
<field name= "name" > Procurement Exceptions</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > mrp.procurement</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "domain" > [('state','=','exception')]</field>
</record>
<record id= "mrp_procurement_action4" model= "ir.actions.act_window" >
<field name= "name" > Procurement Exceptions to Fix</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > mrp.procurement</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "domain" > [('state','=','exception'), ('message', '< > ', '')]</field>
<field name= "filter" eval= "True" />
</record>
<record id= "mrp_procurement_action11" model= "ir.actions.act_window" >
<field name= "name" > Temporary Procurement Exceptions</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > mrp.procurement</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "domain" > [('state','=','exception'), ('message', '=', '')]</field>
</record>
2010-05-12 14:05:51 +00:00
2010-04-29 13:30:07 +00:00
<!-- Order Point -->
<record id= "view_warehouse_orderpoint_tree" model= "ir.ui.view" >
<field name= "name" > stock.warehouse.orderpoint.tree</field>
<field name= "model" > stock.warehouse.orderpoint</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Minimum Stock Rules" >
<field name= "name" />
<field name= "warehouse_id" />
<field name= "location_id" />
<field name= "product_id" />
<field name= "product_uom" />
<field name= "product_min_qty" />
<field name= "product_max_qty" />
</tree>
</field>
</record>
<record model= "ir.ui.view" id= "warehouse_orderpoint_search" >
<field name= "name" > stock.warehouse.orderpoint.search</field>
<field name= "model" > stock.warehouse.orderpoint</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Minimum Stock Rules Search" >
<group col= "10" colspan= "4" >
2010-05-20 09:34:53 +00:00
<field name= "name" />
<field name= "warehouse_id" widget= "selection" />
<field name= "location_id" />
2010-05-24 09:12:32 +00:00
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
2010-05-20 09:34:53 +00:00
<field name= "product_id" />
2010-04-29 13:30:07 +00:00
</group>
<newline />
<group expand= "1" string= "Group By..." colspan= "4" col= "10" >
<filter string= "Warehouse" icon= "terp-stock" domain= "[]" context= "{'group_by':'warehouse_id'}" />
<filter string= "Location" icon= "terp-stock" domain= "[]" context= "{'group_by':'location_id'}" />
</group>
</search>
</field>
</record>
<record id= "view_warehouse_orderpoint_form" model= "ir.ui.view" >
<field name= "name" > stock.warehouse.orderpoint.form</field>
<field name= "model" > stock.warehouse.orderpoint</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Minimum Stock Rules" >
<group col= "2" colspan= "2" >
<separator string= "General Information" colspan= "2" />
<field name= "name" />
<field name= "product_id" on_change= "onchange_product_id(product_id)" />
<field name= "product_uom" />
</group>
<group col= "2" colspan= "2" >
<separator string= "Locations" colspan= "2" />
<field name= "warehouse_id" on_change= "onchange_warehouse_id(warehouse_id)" widget= "selection" />
<field name= "location_id" />
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
</group>
<group col= "2" colspan= "2" >
<separator string= "Quantity Rules" colspan= "2" />
<field name= "product_min_qty" />
<field name= "product_max_qty" />
<field name= "qty_multiple" />
</group>
<group col= "2" colspan= "2" groups= "base.group_extended" >
<separator string= "Misc" colspan= "2" />
<field name= "procurement_id" readonly= "1" />
<field name= "active" />
</group>
</form>
</field>
</record>
<record id= "action_orderpoint_form" model= "ir.actions.act_window" >
<field name= "name" > Minimum Stock Rules</field>
<field name= "res_model" > stock.warehouse.orderpoint</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "view_type" > form</field>
<field name= "view_id" ref= "view_warehouse_orderpoint_tree" />
<field name= "search_view_id" ref= "warehouse_orderpoint_search" />
</record>
<act_window domain= "[('warehouse_id', '=', active_id)]" id= "act_stock_warehouse_2_stock_warehouse_orderpoint" name= "Minimum Stock Rules" res_model= "stock.warehouse.orderpoint" src_model= "stock.warehouse" />
<!-- add product_uom to context to be the default value when adding new orderpoints -->
<act_window
context="{'product_uom': locals().has_key('uom_id') and uom_id}"
domain="[('product_id', '=', active_id)]"
id="act_product_product_2_stock_warehouse_orderpoint"
name="Minimum Stock Rules"
res_model="stock.warehouse.orderpoint"
src_model="product.product"/>
2010-05-12 14:05:51 +00:00
2010-05-14 13:24:15 +00:00
<act_window
context="{'product_uom': locals().has_key('uom_id') and uom_id}"
domain="[('product_id', '=', active_id)]"
id="act_mrp_procurement_2_stock_warehouse_orderpoint"
name="Minimum Stock Rules"
res_model="stock.warehouse.orderpoint"
src_model="mrp.procurement"/>
<act_window
domain="[('id', '=', product_id)]"
id="act_product_product_2_stock_warehouse_orderpoint"
name="Product"
res_model="product.product"
src_model="mrp.procurement"/>
2010-04-29 13:30:07 +00:00
</data>
2010-05-24 09:12:32 +00:00
</openerp>