2010-04-29 13:30:07 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
2011-09-23 17:22:47 +00:00
<data >
<!--
2010-04-29 13:30:07 +00:00
Procurement
-->
2010-11-24 12:33:32 +00:00
2010-05-12 14:05:51 +00:00
2010-05-27 12:47:06 +00:00
<record id= "procurement_tree_view" model= "ir.ui.view" >
<field name= "name" > procurement.order.tree</field>
<field name= "model" > procurement.order</field>
2010-04-29 13:30:07 +00:00
<field name= "arch" type= "xml" >
2011-09-11 13:50:25 +00:00
<tree string= "Procurement Lines" colors= "red:date_planned<current_date and state == 'exception';black:state=='running';darkgreen:state=='confirmed';gray:state in ['done','cancel'];blue:state == '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" />
2012-04-25 11:29:50 +00:00
<field name= "product_uom" string= "Unit of Measure" />
2010-04-29 13:30:07 +00:00
<field name= "state" />
2010-09-29 07:26:25 +00:00
</tree>
</field>
2010-04-29 13:30:07 +00:00
</record>
2013-06-30 22:26:46 +00:00
2010-05-27 12:47:06 +00:00
<record id= "procurement_form_view" model= "ir.ui.view" >
<field name= "name" > procurement.order.form</field>
<field name= "model" > procurement.order</field>
2010-04-29 13:30:07 +00:00
<field name= "arch" type= "xml" >
2012-06-09 15:19:20 +00:00
<form string= "Procurement" version= "7.0" >
2012-06-04 12:11:39 +00:00
<header >
2013-08-04 13:52:18 +00:00
<button name= "run" states= "confirmed,exception" string= "Run Procurement" class= "oe_highlight" type= "object" />
<button name= "check" states= "running" string= "Check Procurement" class= "oe_highlight" type= "object" />
<button name= "cancel" states= "exception,confirmed,running" string= "Cancel Procurement" type= "object" />
2013-11-06 08:32:31 +00:00
<button name= "reset_to_confirmed" states= "cancel" string= "Reconfirm Procurement" type= "object" />
2013-08-04 14:17:50 +00:00
<field name= "state" readonly= "1" widget= "statusbar" statusbar_visible= "draft,confirmed,running,done" />
2012-06-04 12:11:39 +00:00
</header>
2012-06-08 18:35:18 +00:00
<sheet >
2013-11-07 11:20:53 +00:00
<div class= "oe_right oe_button_box" name= "button_box" >
<button name= "do_view_procurements" string= "Group's Procurements" type= "object" />
</div>
2012-06-08 18:35:18 +00:00
<group >
2012-07-16 04:54:52 +00:00
<group >
2013-08-04 13:52:18 +00:00
<field name= "product_id" on_change= "onchange_product_id(product_id)" />
2013-08-04 14:17:50 +00:00
<label for= "product_qty" />
2013-08-04 13:52:18 +00:00
<div >
<div >
<field name= "product_qty" class= "oe_inline" />
<field name= "product_uom" class= "oe_inline" groups= "product.group_uom" />
</div>
</div>
<label for= "product_uos_qty" groups= "product.group_uos" />
<div groups= "product.group_uos" >
<field name= "product_uos_qty" class= "oe_inline" />
<field name= "product_uos" class= "oe_inline" />
</div>
</group>
2013-11-08 16:52:17 +00:00
<group name= "scheduling" string= "Scheduling" >
2012-06-08 18:35:18 +00:00
<field name= "date_planned" />
<field name= "priority" />
</group>
2010-04-29 13:30:07 +00:00
</group>
2012-06-08 18:35:18 +00:00
<notebook >
2013-11-07 11:20:53 +00:00
<page string= "Notes" >
2013-08-04 13:52:18 +00:00
<label for= "name" class= "oe_edit_only" />
<field name= "name" placeholder= "External note..." />
2012-12-18 16:18:52 +00:00
</page>
2013-11-07 11:20:53 +00:00
<page string= "Extra Information" >
<group >
<group >
<field name= "origin" placeholder= "e.g. SO005" />
<field name= "group_id" groups= "base.group_no_one" />
</group>
<group >
<field name= "rule_id" />
2013-11-08 16:52:17 +00:00
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
2013-11-07 11:20:53 +00:00
</group>
</group>
</page>
2010-04-29 13:30:07 +00:00
</notebook>
2012-04-20 10:29:12 +00:00
</sheet>
2012-07-13 09:53:41 +00:00
<div class= "oe_chatter" >
2012-08-15 22:30:38 +00:00
<field name= "message_follower_ids" widget= "mail_followers" />
2012-10-26 09:58:21 +00:00
<field name= "message_ids" widget= "mail_thread" />
2012-07-13 09:53:41 +00:00
</div>
2010-04-29 13:30:07 +00:00
</form>
</field>
</record>
2013-10-01 15:29:47 +00:00
2013-10-03 13:35:03 +00:00
<record id= "do_view_procurements" model= "ir.actions.act_window" >
2013-11-07 11:20:53 +00:00
<field name= "name" > Group's Procurements</field>
2013-10-01 15:29:47 +00:00
<field name= "res_model" > procurement.order</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2013-11-06 08:32:31 +00:00
<field name= "domain" > [('group_id','=',active_id)]</field>
2013-10-01 15:29:47 +00:00
</record>
2013-10-03 13:35:03 +00:00
<record id= "procurement_group_form_view" model= "ir.ui.view" >
2013-10-01 15:29:47 +00:00
<field name= "name" > procurement.group.form</field>
<field name= "model" > procurement.group</field>
<field name= "arch" type= "xml" >
<form string= "Procurement group" version= "7.0" >
<sheet >
2013-11-07 11:20:53 +00:00
<div class= "oe_right oe_button_box" name= "button_box" >
<button name= "%(do_view_procurements)d" string= "Procurements" type= "action" />
2013-11-06 08:32:31 +00:00
</div>
2013-10-01 15:29:47 +00:00
<group >
<field name= "name" />
<field name= "move_type" />
</group>
</sheet>
</form>
</field>
</record>
2010-05-27 12:47:06 +00:00
<record id= "view_procurement_filter" model= "ir.ui.view" >
<field name= "name" > procurement.order.select</field>
<field name= "model" > procurement.order</field>
2010-04-29 13:30:07 +00:00
<field name= "arch" type= "xml" >
<search string= "Search Procurement" >
2012-07-23 05:54:23 +00:00
<field name= "origin" string= "Procurement" />
<field name= "date_planned" />
<filter icon= "terp-emblem-important" string= "Exceptions" name= "exceptions" domain= "[('state','=','exception')]" help= "Procurement Exceptions" />
2012-07-30 08:50:27 +00:00
<separator />
2013-07-10 15:02:07 +00:00
<filter icon= "terp-gnome-cpu-frequency-applet+" string= "Late" domain= "['&', ('date_planned','<', current_date), ('state', '=', 'confirmed')]" help= "Procurement started late" />
2012-07-31 11:28:04 +00:00
<field name= "product_id" />
2012-07-31 15:03:58 +00:00
<field name= "state" />
2012-04-25 14:18:36 +00:00
<group expand= "0" string= "Group By" >
2010-06-01 05:30:23 +00:00
<filter string= "Product" icon= "terp-accessories-archiver" domain= "[]" context= "{'group_by':'product_id'}" />
2013-09-04 14:10:53 +00:00
<filter string= "Scheduled Month" icon= "terp-go-month" domain= "[]" context= "{'group_by':'date_planned'}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-04-29 13:30:07 +00:00
</group>
</search>
</field>
</record>
2013-10-01 15:29:47 +00:00
2010-05-27 12:47:06 +00:00
<record id= "procurement_action" model= "ir.actions.act_window" >
2010-04-29 13:30:07 +00:00
<field name= "name" > Procurement Orders</field>
<field name= "type" > ir.actions.act_window</field>
2010-05-27 12:47:06 +00:00
<field name= "res_model" > procurement.order</field>
2010-04-29 13:30:07 +00:00
<field name= "view_type" > form</field>
<field name= "view_id" eval= "False" />
2010-05-27 12:47:06 +00:00
<field name= "search_view_id" ref= "view_procurement_filter" />
2010-09-13 01:57:17 +00:00
<field name= "context" > {'search_default_current':1}</field>
2012-08-04 14:35:56 +00:00
<field name= "help" type= "html" >
2012-08-04 13:56:31 +00:00
<p class= "oe_view_nocontent_create" >
2013-11-05 16:15:17 +00:00
Click to create a procurement order.
</p>
<p >
A <b > procurement order</b> is used to record a need for a specific
product at a specific location. Procurement orders are usually
created automatically from <i > sales orders, pull logistic rules or
minimum stock rules.</i>
</p>
<p >
2012-08-04 13:21:36 +00:00
When the procurement order is confirmed, it automatically
creates the necessary operations to fullfil the need: purchase
order proposition, manufacturing order, etc.
</p>
</field>
2010-04-29 13:30:07 +00:00
</record>
2013-10-01 15:29:47 +00:00
2010-09-13 01:57:17 +00:00
<record id= "procurement_exceptions" model= "ir.actions.act_window" >
2013-08-04 13:52:18 +00:00
<field name= "name" > Procurements</field>
2010-04-29 13:30:07 +00:00
<field name= "type" > ir.actions.act_window</field>
2010-05-27 12:47:06 +00:00
<field name= "res_model" > procurement.order</field>
2010-04-29 13:30:07 +00:00
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2013-08-04 13:52:18 +00:00
<field name= "context" > {}</field>
2010-05-27 12:47:06 +00:00
<field name= "search_view_id" ref= "view_procurement_filter" />
2012-09-13 10:34:47 +00:00
<field name= "help" type= "html" >
2013-11-05 16:15:17 +00:00
<p class= "oe_view_nocontent_create" >
2013-11-08 16:52:17 +00:00
Click to create a Procurement.
2013-11-05 16:15:17 +00:00
</p>
<p >
<b > Procurement Orders</b> represent the need for a certain quantity of products, at a given time, in a given location.
</p>
2013-11-08 16:52:17 +00:00
<p >
2013-11-05 16:15:17 +00:00
<b > Sales Orders</b> are one typical source of Procurement Orders (but these are distinct documents).
<br /> Depending on the procurement parameters and the product configuration, the procurement engine will attempt to satisfy the need by reserving products from stock, ordering products from a supplier, or passing a manufacturing order, etc...
</p>
2013-11-08 16:52:17 +00:00
<p >
2013-11-05 16:15:17 +00:00
A <b > Procurement Exception</b> occurs when the system cannot find a way to fulfill a procurement. Some exceptions will resolve themselves automatically, but others require manual intervention (those are identified by a specific error message in the chatter).
</p>
2012-09-13 10:34:47 +00:00
</field>
2010-04-29 13:30:07 +00:00
</record>
2010-11-24 12:33:32 +00:00
2010-05-27 12:47:06 +00:00
<record id= "procurement_action5" model= "ir.actions.act_window" >
2010-04-29 13:30:07 +00:00
<field name= "name" > Procurement Exceptions</field>
<field name= "type" > ir.actions.act_window</field>
2010-05-27 12:47:06 +00:00
<field name= "res_model" > procurement.order</field>
2010-04-29 13:30:07 +00:00
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "domain" > [('state','=','exception')]</field>
</record>
2013-11-07 11:20:53 +00:00
<!-- Procurement Rules -->
<record model= "ir.ui.view" id= "view_procurement_rule_tree" >
<field name= "name" > procurement.rule.tree</field>
<field name= "model" > procurement.rule</field>
<field eval= "10" name= "priority" />
<field name= "arch" type= "xml" >
<tree string= "Pull Rules" >
<field name= "name" />
<field name= "action" />
<field name= 'company_id' groups= "base.group_multi_company" />
</tree>
</field>
</record>
<record model= "ir.ui.view" id= "view_procurement_rule_form" >
<field name= "name" > procurement.rule.form</field>
<field name= "model" > procurement.rule</field>
<field eval= "10" name= "priority" />
<field name= "arch" type= "xml" >
<form string= "Pull Rule" version= "7.0" >
<sheet >
<div class= "oe_title" >
<label for= "name" class= "oe_edit_only" />
<h1 > <field name= "name" /> </h1>
</div>
<group >
<group string= "General Information" >
<field name= "action" />
<field name= "sequence" />
2014-04-23 08:23:22 +00:00
<field name= "active" />
2013-11-07 11:20:53 +00:00
</group>
<group name= "propagation_group" string= "Propagation Options" groups= "base.group_no_one" >
<field name= "group_propagation_option" />
<field name= "group_id" attrs= "{'invisible': [('group_propagation_option', '!=', 'fixed')], 'required': [('group_propagation_option', '=', 'fixed')]}" />
</group>
</group>
</sheet>
</form>
</field>
</record>
2010-04-29 13:30:07 +00:00
</data>
2010-05-24 09:12:32 +00:00
</openerp>