2008-07-01 15:58:58 +00:00
<?xml version="1.0" encoding="utf-8"?>
2008-09-10 17:56:00 +00:00
<openerp >
2008-06-29 08:26:07 +00:00
<data >
2010-10-16 16:47:09 +00:00
<menuitem icon= "terp-purchase" id= "base.menu_purchase_root" name= "Purchases" sequence= "3"
2010-11-26 12:11:55 +00:00
groups="group_purchase_manager,group_purchase_user"
web_icon="images/purchases.png"
web_icon_hover="images/purchases-hover.png"/>
2012-03-13 09:28:50 +00:00
<menuitem id= "menu_procurement_management" name= "Purchase"
2010-08-07 06:34:14 +00:00
parent="base.menu_purchase_root" sequence="1" />
2010-06-22 03:59:29 +00:00
2010-12-20 14:21:41 +00:00
<menuitem id= "menu_purchase_config_purchase" name= "Configuration"
2010-12-29 12:41:23 +00:00
groups="group_purchase_manager"
2010-11-24 12:39:17 +00:00
parent="base.menu_purchase_root" sequence="100"/>
2011-02-15 10:49:00 +00:00
<menuitem
2010-12-21 10:28:28 +00:00
id="menu_purchase_config_pricelist" name="Pricelists"
2012-03-22 12:50:08 +00:00
parent="menu_purchase_config_purchase" sequence="50" groups="product.group_purchase_pricelist"/>
2011-01-07 13:02:46 +00:00
2010-11-24 12:39:17 +00:00
<menuitem
action="product.product_pricelist_action" id="menu_product_pricelist_action_purhase"
2012-03-16 08:36:18 +00:00
parent="menu_purchase_config_pricelist" sequence="20" groups="base.group_no_one"/>
2010-11-24 12:39:17 +00:00
<menuitem
2011-11-08 11:27:00 +00:00
action="product.product_pricelist_action_for_purchase" id="menu_product_pricelist_action2_purchase"
2012-03-16 08:36:18 +00:00
parent="menu_purchase_config_pricelist" sequence="10" />
2010-11-24 12:39:17 +00:00
2011-02-15 10:49:00 +00:00
<menuitem
2011-12-30 11:27:07 +00:00
id="menu_product_in_config_purchase" name="Products"
2012-03-22 11:19:39 +00:00
parent="menu_purchase_config_purchase" sequence="30" groups="base.group_no_one"/>
2011-01-07 13:02:46 +00:00
2010-12-09 11:04:55 +00:00
<menuitem
action="product.product_category_action_form" id="menu_product_category_config_purchase"
2012-03-22 11:19:39 +00:00
parent="purchase.menu_product_in_config_purchase" sequence="1" />
2011-02-15 10:49:00 +00:00
<menuitem
2010-12-21 10:28:28 +00:00
id="menu_purchase_unit_measure_purchase" name="Units of Measure"
2012-03-22 12:50:08 +00:00
parent="purchase.menu_product_in_config_purchase" sequence="20" groups="product.group_uom"/>
2011-01-07 13:02:46 +00:00
2010-12-09 11:04:55 +00:00
<menuitem
action="product.product_uom_categ_form_action" id="menu_purchase_uom_categ_form_action"
2012-03-22 11:19:39 +00:00
parent="purchase.menu_product_in_config_purchase" sequence="5" />
2011-02-15 10:49:00 +00:00
2010-12-09 11:04:55 +00:00
<menuitem
action="product.product_uom_form_action" id="menu_purchase_uom_form_action"
2012-03-22 11:19:39 +00:00
parent="purchase.menu_product_in_config_purchase" sequence="10"/>
2010-11-24 12:39:17 +00:00
2011-07-08 12:08:11 +00:00
<menuitem
2011-07-08 11:40:03 +00:00
id="menu_purchase_partner_cat" name="Address Book"
parent="menu_purchase_config_purchase"/>
2011-07-08 12:08:11 +00:00
<menuitem
action="base.action_partner_category_form" id="menu_partner_categories_in_form" name="Partner Categories"
2012-03-16 08:36:18 +00:00
parent="purchase.menu_purchase_partner_cat" groups="base.group_no_one"/>
2010-01-12 10:08:25 +00:00
2012-06-22 10:53:51 +00:00
<!-- supplier menu -->
2012-02-27 05:51:14 +00:00
<menuitem id= "base.menu_procurement_management_supplier_name" name= "Suppliers"
2012-06-22 10:53:51 +00:00
parent="menu_procurement_management"
action="base.action_partner_supplier_form" sequence="15"/>
2010-01-12 10:08:25 +00:00
<!-- Inventory control -->
2010-10-10 17:32:39 +00:00
<menuitem id= "menu_procurement_management_inventory" name= "Receive Products"
2012-04-25 13:22:02 +00:00
parent="base.menu_purchase_root" sequence="4"/>
2010-04-21 06:27:11 +00:00
<menuitem action= "stock.action_picking_tree4" id= "menu_action_picking_tree4" parent= "menu_procurement_management_inventory"
2011-11-11 06:16:52 +00:00
name="Incoming Shipments" sequence="9"/>
2010-06-21 19:48:42 +00:00
<menuitem action= "stock.action_reception_picking_move" id= "menu_action_picking_tree_in_move"
2012-04-25 13:22:02 +00:00
parent="menu_procurement_management_inventory" sequence="11"/>
2010-01-12 10:08:25 +00:00
2012-06-22 10:53:51 +00:00
<!-- Invoice control -->
<menuitem id= "menu_procurement_management_invoice" name= "Invoice Control"
parent="base.menu_purchase_root" sequence="6"/>
2010-10-10 17:32:39 +00:00
<record id= "action_invoice_pending" model= "ir.actions.act_window" >
2012-06-19 05:30:54 +00:00
<field name= "name" > Based on Draft Invoices</field>
2010-10-10 17:32:39 +00:00
<field name= "res_model" > account.invoice</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form,calendar,graph</field>
<field eval= "False" name= "view_id" />
<field name= "domain" > [('type','=','in_invoice')]</field>
2011-11-24 12:14:33 +00:00
<field name= "context" > {'default_type':'in_invoice', 'type':'in_invoice', 'journal_type': 'purchase', 'search_default_draft': 1}</field>
2010-10-10 17:32:39 +00:00
<field name= "search_view_id" ref= "account.view_account_invoice_filter" />
2012-06-21 07:47:17 +00:00
<field name= "help" >
Use this menu to control the invoices to be received from your supplier.
OpenERP generates draft invoices from your purchase orders or receptions, according to your settings.
Once you receive a supplier invoice, you can match it with the draft invoice and validate it.
</field>
2010-10-10 17:32:39 +00:00
</record>
2012-06-19 05:30:54 +00:00
<menuitem name= "Based on Draft Invoices"
2010-06-21 19:48:42 +00:00
id="menu_procurement_management_pending_invoice"
2010-10-10 17:32:39 +00:00
action="action_invoice_pending"
2010-06-21 19:48:42 +00:00
parent="menu_procurement_management_invoice"
sequence="13"/>
2010-02-02 14:21:55 +00:00
2010-01-12 10:08:25 +00:00
<!-- product menu -->
2010-06-21 19:48:42 +00:00
<menuitem id= "menu_procurement_management_product" name= "Products"
parent="base.menu_purchase_root" sequence="8"/>
2011-01-07 13:02:46 +00:00
2010-12-09 11:04:55 +00:00
<menuitem name= "Products by Category" id= "menu_product_by_category_purchase_form" action= "product.product_category_action"
2010-12-21 10:28:28 +00:00
parent="menu_procurement_management_product" sequence="10"/>
2011-01-07 13:02:46 +00:00
2010-01-12 10:08:25 +00:00
<menuitem name= "Products" id= "menu_procurement_partner_contact_form" action= "product.product_normal_action_puchased"
2010-06-21 19:48:42 +00:00
parent="menu_procurement_management_product"/>
2008-08-27 11:26:37 +00:00
2012-06-26 12:00:13 +00:00
<!-- Purchase order Read/Unread actions -->
<record id= "actions_server_purchase_order_unread" model= "ir.actions.server" >
<field name= "name" > Mark unread</field>
<field name= "condition" > True</field>
<field name= "type" > ir.actions.server</field>
<field name= "model_id" ref= "model_purchase_order" />
<field name= "state" > code</field>
<field name= "code" > self.message_check_and_set_unread(cr, uid, context.get('active_ids'), context=context)</field>
</record>
<record id= "action_purchase_order_unread" model= "ir.values" >
<field name= "name" > action_purchase_order_unread</field>
<field name= "action_id" ref= "actions_server_purchase_order_unread" />
<field name= "value" eval= "'ir.actions.server,' + str(ref('actions_server_purchase_order_unread'))" />
<field name= "key" > action</field>
<field name= "model_id" ref= "model_purchase_order" />
<field name= "model" > purchase.order</field>
<field name= "key2" > client_action_multi</field>
</record>
<record id= "actions_server_purchase_order_read" model= "ir.actions.server" >
<field name= "name" > Mark read</field>
<field name= "condition" > True</field>
<field name= "type" > ir.actions.server</field>
<field name= "model_id" ref= "model_purchase_order" />
<field name= "state" > code</field>
<field name= "code" > self.message_check_and_set_read(cr, uid, context.get('active_ids'), context=context)</field>
</record>
<record id= "action_purchase_order_read" model= "ir.values" >
<field name= "name" > action_purchase_order_read</field>
<field name= "action_id" ref= "actions_server_purchase_order_read" />
<field name= "value" eval= "'ir.actions.server,' + str(ref('actions_server_purchase_order_read'))" />
<field name= "key" > action</field>
<field name= "model_id" ref= "model_purchase_order" />
<field name= "model" > purchase.order</field>
<field name= "key2" > client_action_multi</field>
</record>
2008-09-03 15:36:31 +00:00
<record model= "ir.ui.view" id= "purchase_order_calendar" >
<field name= "name" > purchase.order.calendar</field>
<field name= "model" > purchase.order</field>
<field name= "type" > calendar</field>
<field name= "priority" eval= "2" />
<field name= "arch" type= "xml" >
<calendar string= "Calendar View" date_start= "minimum_planned_date" color= "partner_id" >
<field name= "name" />
<field name= "amount_total" />
<field name= "partner_id" />
</calendar>
</field>
</record>
2010-12-29 11:27:14 +00:00
<record model= "ir.ui.view" id= "purchase_order_graph" >
2008-09-16 10:37:53 +00:00
<field name= "name" > purchase.order.graph</field>
<field name= "model" > purchase.order</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Purchase Order" type= "bar" >
<field name= "partner_id" />
<field name= "amount_total" operator= "+" />
</graph>
</field>
</record>
2008-08-30 09:14:15 +00:00
2008-07-01 15:58:58 +00:00
<record id= "purchase_order_form" model= "ir.ui.view" >
<field name= "name" > purchase.order.form</field>
<field name= "model" > purchase.order</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-06-09 19:49:46 +00:00
<form string= "Purchase Order" version= "7.0" >
2012-06-04 12:11:39 +00:00
<header >
2012-07-02 13:38:21 +00:00
<button name= "purchase_confirm" states= "draft,sent" string= "Confirm Quotation" class= "oe_highlight" />
2012-05-25 13:17:15 +00:00
<button name= "wkf_send_rfq" states= "draft" string= "Send RFQ" type= "object" context= "{'send_rfq':True}" />
2012-06-20 10:12:05 +00:00
<button name= "wkf_send_rfq" states= "confirmed" string= "Resend Purchase Order" type= "object" class= "oe_highlight" />
2012-05-22 11:06:00 +00:00
<button name= "action_cancel" states= "except_picking,except_invoice,wait" string= "Cancel" type= "object" />
2012-05-22 09:14:45 +00:00
<button name= "picking_ok" states= "except_picking" string= "Manually Corrected" />
<button name= "invoice_ok" states= "except_invoice" string= "Manually Corrected" />
2012-06-19 08:56:18 +00:00
<button name= "purchase_appbuyer" states= "wait_auth" string= "Approve Purchase" class= "oe_highlight" />
<button name= "purchase_approve" states= "confirmed" string= "Approve Order" class= "oe_highlight" />
2012-06-20 10:12:05 +00:00
<button name= "view_invoice" string= "Receive Invoice" type= "object" attrs= "{'invisible': ['|', ('invoice_method','=','picking'), '|', ('state','!=', 'approved'), ('invoiced','=',True) ]}" class= "oe_highlight" />
<button name= "view_picking" string= "Receive Products" type= "object" attrs= "{'invisible': ['|', ('shipped','=',True), ('state','!=', 'approved')]}" class= "oe_highlight" />
2012-06-21 07:09:59 +00:00
<button name= "action_cancel_draft" states= "cancel,sent,confirmed" string= "Set to Draft" type= "object" />
2012-05-25 14:35:49 +00:00
<button name= "purchase_cancel" states= "draft,confirmed,wait_auth,sent" string= "Cancel" />
2012-06-04 10:50:56 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "draft,approved,done" statusbar_colors= '{"except_picking":"red","except_invoice":"red","confirmed":"blue","wait":"blue"}' readonly= "1" />
2012-06-04 12:11:39 +00:00
</header>
2012-06-09 19:49:46 +00:00
<sheet >
2012-06-20 10:35:43 +00:00
<div class= "oe_title" >
<h1 >
2012-07-02 13:38:21 +00:00
<label string= "Quotation " attrs= "{'invisible': [('state','not in',('draft','sent'))]}" />
2012-06-20 10:35:43 +00:00
<label string= "Purchase Order " attrs= "{'invisible': [('state','in',('draft','sent'))]}" />
<field name= "name" class= "oe_inline" readonly= "1" />
</h1>
</div>
2012-06-09 19:49:46 +00:00
<group >
<group >
2012-06-28 12:18:20 +00:00
<field name= "partner_id" on_change= "onchange_partner_id(partner_id)" context= "{'search_default_supplier':1,'default_supplier':1,'default_customer':0}" />
2012-06-09 19:49:46 +00:00
<field name= "partner_ref" />
2012-03-22 12:50:08 +00:00
<field domain= "[('type','=','purchase')]" name= "pricelist_id" groups= "product.group_purchase_pricelist" />
2012-06-09 19:49:46 +00:00
</group>
<group >
<field name= "date_order" />
2012-06-10 17:50:39 +00:00
<field name= "origin" attr= "{'invisible': [('origin','=',False)]}" />
2012-06-09 19:49:46 +00:00
<field name= "warehouse_id" on_change= "onchange_warehouse_id(warehouse_id)" widget= "selection" groups= "stock.group_locations" />
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
</group>
</group>
<notebook >
<page string= "Purchase Order" >
<field name= "order_line" >
2010-10-10 17:32:39 +00:00
<tree string= "Purchase Order Lines" >
2009-09-18 12:28:07 +00:00
<field name= "date_planned" />
<field name= "name" />
<field name= "product_qty" />
2012-03-22 12:50:08 +00:00
<field name= "product_uom" groups= "product.group_uom" />
2009-09-18 12:28:07 +00:00
<field name= "price_unit" />
2012-06-20 11:07:12 +00:00
<field name= "price_subtotal" />
2009-09-18 12:28:07 +00:00
</tree>
</field>
2012-06-27 06:05:44 +00:00
<group class= "oe_subtotal_footer oe_right" >
2012-06-09 19:49:46 +00:00
<field name= "amount_untaxed" />
2008-07-01 15:58:58 +00:00
<field name= "amount_tax" />
2012-06-22 06:18:17 +00:00
<div class= "oe_subtotal_footer_separator oe_inline" colspan= "2" >
2012-06-27 06:10:16 +00:00
<button name= "button_dummy" states= "draft" string= "Compute" type= "object" icon= "gtk-execute" class= "oe_inline oe_left" />
2012-06-22 06:18:17 +00:00
<field name= "amount_total" />
</div>
2012-07-02 13:38:21 +00:00
</group>
2012-06-09 19:49:46 +00:00
<div class= "oe_clear" />
<label for= "notes" />
<field name= "notes" />
2008-06-29 08:26:07 +00:00
</page>
2012-04-25 13:22:02 +00:00
<page string= "Delivery & Invoicing" >
2012-06-09 19:49:46 +00:00
<group >
<group string= "Delivery" >
2012-06-25 12:51:51 +00:00
<field name= "dest_address_id" string= "Customer Address" on_change= "onchange_dest_address_id(dest_address_id)" />
2012-06-09 19:49:46 +00:00
<field name= "minimum_planned_date" />
<field name= "location_id" groups= "stock.group_locations" />
2012-06-25 12:51:51 +00:00
<field name= "shipped" groups= "base.group_no_one" />
</group>
<group >
<field name= "validator" groups= "base.group_no_one" />
<field name= "date_approve" />
2012-06-09 19:49:46 +00:00
</group>
2008-09-03 16:02:26 +00:00
</group>
2012-06-27 06:05:44 +00:00
<group string= "Invoicing" >
2012-06-25 12:51:51 +00:00
<group >
2012-06-09 19:49:46 +00:00
<field name= "invoice_method" />
2012-06-27 06:05:44 +00:00
<field name= "invoiced" />
2012-06-09 19:49:46 +00:00
</group>
2012-06-25 12:51:51 +00:00
<group >
2012-06-27 06:05:44 +00:00
<field name= "fiscal_position" />
2012-06-09 19:49:46 +00:00
</group>
2008-09-03 16:02:26 +00:00
</group>
2012-06-20 08:51:20 +00:00
<separator string= "Invoices" />
<field name= "invoice_ids" context= "{'type':'in_invoice', 'journal_type':'purchase'}" />
2008-06-29 08:26:07 +00:00
</page>
</notebook>
2012-04-26 08:42:45 +00:00
</sheet>
2012-06-09 19:49:46 +00:00
<footer >
<field name= "message_ids" widget= "ThreadView" />
</footer>
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2008-08-27 11:26:37 +00:00
2011-09-19 08:55:49 +00:00
<record id= "view_request_for_quotation_filter" model= "ir.ui.view" >
2011-09-19 11:09:52 +00:00
<field name= "name" > request.quotation.select</field>
2009-09-24 10:46:21 +00:00
<field name= "model" > purchase.order</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Purchase Order" >
2011-03-15 14:08:59 +00:00
<group >
2012-06-22 11:12:51 +00:00
<field name= "name" string= "Reference" />
2010-09-16 09:25:43 +00:00
<separator orientation= "vertical" />
2012-06-18 11:58:59 +00:00
<filter icon= "terp-document-new" name= "draft" string= "Quotations" domain= "[('state','=','draft')]" help= "Purchase order which are in draft state" />
<filter icon= "terp-check" name= "approved" string= "Approved" domain= "[('state','in',('approved','done'))]" help= "Approved purchase order" />
<filter icon= "terp-gtk-go-back-rtl" name= "not_invoiced" string= "Not Invoiced" domain= "[('invoice_ids','=', False)]" help= "Purchase orders that include lines not invoiced." />
<filter icon= "terp-emblem-important" name= "exception" string= "Exception" domain= "[('state','in',('except_invoice','except_picking'))]" help= "Purchase order which are in the exception state" />
2009-11-24 10:08:23 +00:00
<separator orientation= "vertical" />
2011-09-19 08:55:49 +00:00
<field name= "partner_id" />
<field name= "product_id" />
<field name= "create_uid" />
</group>
<newline />
2012-06-18 11:58:59 +00:00
<group expand= "0" string= "Group By..." >
2011-09-19 08:55:49 +00:00
<filter string= "Supplier" icon= "terp-partner" domain= "[]" context= "{'group_by':'partner_id'}" />
2012-06-18 11:58:59 +00:00
<separator orientation= "vertical" />
2012-05-04 12:32:02 +00:00
<filter string= "Source" icon= "terp-gtk-jump-to-rtl" domain= "[]" context= "{'group_by':'origin'}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2012-06-18 11:58:59 +00:00
<separator orientation= "vertical" />
2011-09-19 08:55:49 +00:00
<filter string= "Order Date" icon= "terp-go-month" domain= "[]" context= "{'group_by':'date_order'}" />
<filter string= "Expected Date" icon= "terp-go-month" domain= "[]" context= "{'group_by':'minimum_planned_date'}" />
</group>
</search>
</field>
</record>
2011-10-18 15:23:59 +00:00
2011-09-19 08:55:49 +00:00
<record id= "view_purchase_order_filter" model= "ir.ui.view" >
<field name= "name" > purchase.order.list.select</field>
<field name= "model" > purchase.order</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Purchase Order" >
<group >
2012-06-22 11:12:51 +00:00
<field name= "name" string= "Reference" />
2011-09-19 08:55:49 +00:00
<separator orientation= "vertical" />
2012-06-22 10:15:06 +00:00
<filter icon= "terp-mail-message-new"
string="Inbox" help="Unread messages"
name="needaction_pending"
domain="[('needaction_pending','=',True)]"/>
<separator orientation= "vertical" />
2012-06-18 11:58:59 +00:00
<filter icon= "terp-document-new" name= "draft" string= "Quotations" domain= "[('state','=','draft')]" help= "Purchase orders which are in draft state" />
<filter icon= "terp-check" name= "approved" string= "Purchase Orders" domain= "[('state','not in',('draft','cancel'))]" help= "Approved purchase orders" />
<filter icon= "terp-gtk-go-back-rtl" name= "not_invoiced" string= "Not Invoiced" domain= "[('invoice_ids','=', False)]" help= "Purchase orders that include lines not invoiced." />
2012-03-05 05:46:20 +00:00
<filter icon= "terp-emblem-important" name= "exception" string= "Exception" domain= "[('state','in',('except_invoice','except_picking'))]" help= "Purchase orders which are in exception state" />
2011-09-19 08:55:49 +00:00
<separator orientation= "vertical" />
2011-03-15 12:41:11 +00:00
<field name= "partner_id" />
<field name= "product_id" />
<field name= "create_uid" />
2009-09-24 10:46:21 +00:00
</group>
2010-03-25 07:44:05 +00:00
<newline />
2012-06-18 11:58:59 +00:00
<group expand= "0" string= "Group By..." >
2010-11-02 17:07:13 +00:00
<filter string= "Supplier" icon= "terp-partner" domain= "[]" context= "{'group_by':'partner_id'}" />
2012-06-18 11:58:59 +00:00
<separator orientation= "vertical" />
2012-05-04 12:32:02 +00:00
<filter string= "Source" icon= "terp-gtk-jump-to-rtl" domain= "[]" context= "{'group_by':'origin'}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2012-06-18 11:58:59 +00:00
<separator orientation= "vertical" />
2010-06-01 10:47:58 +00:00
<filter string= "Order Date" icon= "terp-go-month" domain= "[]" context= "{'group_by':'date_order'}" />
<filter string= "Expected Date" icon= "terp-go-month" domain= "[]" context= "{'group_by':'minimum_planned_date'}" />
2010-03-05 07:44:55 +00:00
</group>
2009-09-24 10:46:21 +00:00
</search>
</field>
</record>
2012-02-27 05:51:14 +00:00
2008-07-01 15:58:58 +00:00
<record id= "purchase_order_tree" model= "ir.ui.view" >
<field name= "name" > purchase.order.tree</field>
<field name= "model" > purchase.order</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2012-04-19 10:06:53 +00:00
<tree fonts= "bold:needaction_pending==True" colors= "grey:state=='cancel';blue:state in ('wait','confirmed');red:state in ('except_invoice','except_picking')" string= "Purchase Order" >
<field name= "needaction_pending" invisible= "1" />
2008-09-03 15:40:08 +00:00
<field name= "name" string= "Reference" />
2011-11-04 07:50:49 +00:00
<field name= "date_order" />
2008-07-01 15:58:58 +00:00
<field name= "partner_id" />
2010-02-09 07:34:15 +00:00
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
2011-12-11 11:28:50 +00:00
<field name= "minimum_planned_date" invisible= "context.get('quotation_only', False)" />
2010-04-19 06:16:11 +00:00
<field name= "origin" />
2011-12-11 11:28:50 +00:00
<field name= "invoiced_rate" widget= "progressbar" invisible= "context.get('quotation_only', False)" />
<field name= "shipped_rate" widget= "progressbar" invisible= "context.get('quotation_only', False)" />
2010-04-06 11:14:25 +00:00
<field name= "amount_untaxed" sum= "Total Untaxed amount" />
2010-02-09 07:34:15 +00:00
<field name= "amount_total" sum= "Total amount" />
2008-07-01 15:58:58 +00:00
<field name= "state" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2008-08-27 11:26:37 +00:00
2010-04-19 14:22:35 +00:00
<record id= "purchase_rfq" model= "ir.actions.act_window" >
2012-05-17 05:44:51 +00:00
<field name= "name" > Quotations</field>
2010-04-19 14:22:35 +00:00
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > purchase.order</field>
2010-10-10 17:32:39 +00:00
<field name= "context" > {'search_default_draft': 1}</field>
2010-04-19 14:22:35 +00:00
<field name= "view_mode" > tree,form,graph,calendar</field>
2012-03-05 05:46:20 +00:00
<field name= "search_view_id" ref= "view_purchase_order_filter" />
2012-06-21 07:47:17 +00:00
<field name= "help" >
Create a request for quotation when you want to buy products from a supplier.
You can also use this menu to review requests for quotation created automatically
(based on logistic rules, like minimum stock, MTO, etc.)
< p>
Once confirmed, a request for quotation becomes a purchase order.
In the Purchase Settings, you can select the way to control supplier invoicing:
based on the order, based on receptions, or manual.
</field>
2010-04-19 14:22:35 +00:00
</record>
2011-01-07 13:02:46 +00:00
<menuitem action= "purchase_rfq" id= "menu_purchase_rfq"
2010-12-30 10:18:57 +00:00
parent="menu_procurement_management"
2012-04-10 07:16:27 +00:00
sequence="0"/>
2010-04-19 14:22:35 +00:00
<record id= "purchase_form_action" model= "ir.actions.act_window" >
<field name= "name" > Purchase Orders</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > purchase.order</field>
<field name= "view_mode" > tree,form,graph,calendar</field>
2012-05-21 12:50:14 +00:00
<field name= "context" > {'search_default_approved': 1}</field>
2010-05-19 15:50:01 +00:00
<field name= "search_view_id" ref= "view_purchase_order_filter" />
2010-12-30 10:18:57 +00:00
<field name= "help" > Use this menu to search within your purchase orders by references, supplier, products, etc. For each purchase order, you can track the products received, and control the supplier invoices.</field>
2010-04-19 14:22:35 +00:00
</record>
2012-04-10 07:16:27 +00:00
<menuitem action= "purchase_form_action" id= "menu_purchase_form_action" parent= "menu_procurement_management" sequence= "6" />
2010-04-19 14:22:35 +00:00
2008-07-01 15:58:58 +00:00
<record id= "purchase_order_line_form" model= "ir.ui.view" >
<field name= "name" > purchase.order.line.form</field>
<field name= "model" > purchase.order.line</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-06-09 19:49:46 +00:00
<form string= "Purchase Order Line" version= "7.0" >
<sheet >
<group >
<group >
<field name= "product_id" on_change= "onchange_product_id(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes,context)" />
<label for= "product_qty" />
<div >
2012-06-19 08:56:18 +00:00
<field name= "product_qty" on_change= "onchange_product_id(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id,parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes,context)" class= "oe_inline" />
<field name= "product_uom" groups= "product.group_uom" on_change= "onchange_product_uom(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes,context)" class= "oe_inline" />
2012-06-09 19:49:46 +00:00
</div>
<field name= "price_unit" />
2012-06-21 07:15:16 +00:00
<field name= "taxes_id" widget= "many2many_tags" domain= "[('parent_id','=',False),('type_tax_use','!=','sale')]" />
2012-06-09 19:49:46 +00:00
</group>
<group >
2012-06-21 07:15:16 +00:00
<field name= "name" />
2012-06-09 19:49:46 +00:00
<field name= "date_planned" widget= "date" />
2012-06-21 07:15:16 +00:00
<field name= "account_analytic_id" colspan= "2" groups= "purchase.group_analytic_accounting" domain= "[('parent_id','!=',False)]" />
2012-06-09 19:49:46 +00:00
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
2010-06-11 22:02:09 +00:00
</group>
2012-06-09 19:49:46 +00:00
<group string= "Notes" colspan= "4" >
2012-06-21 07:15:16 +00:00
<field name= "notes" nolabel= "1" placeholder= "Add a note on the purchase line..." />
2012-06-09 19:49:46 +00:00
</group>
<group string= "Invoices" colspan= "4" >
2012-06-21 07:15:16 +00:00
<field name= "invoice_lines" nolabel= "1" />
</group>
<group string= "Stock Moves" colspan= "4" >
<field name= "move_ids" nolabel= "1" />
2012-06-09 19:49:46 +00:00
</group>
</group>
</sheet>
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2008-08-27 11:26:37 +00:00
2008-07-01 15:58:58 +00:00
<record id= "purchase_order_line_tree" model= "ir.ui.view" >
<field name= "name" > purchase.order.line.tree</field>
<field name= "model" > purchase.order.line</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-10-10 17:32:39 +00:00
<tree string= "Purchase Order Lines" >
2009-12-29 14:22:46 +00:00
<field name= "order_id" />
2009-10-03 10:15:23 +00:00
<field name= "name" />
2010-10-19 09:11:03 +00:00
<field name= "partner_id" string= "Supplier" />
2009-05-20 10:58:57 +00:00
<field name= "product_id" />
2008-07-01 15:58:58 +00:00
<field name= "price_unit" />
2010-10-19 09:11:03 +00:00
<field name= "product_qty" />
2012-03-22 12:50:08 +00:00
<field name= "product_uom" groups= "product.group_uom" />
2008-07-01 15:58:58 +00:00
<field name= "price_subtotal" />
2010-10-19 09:11:03 +00:00
<field name= "date_planned" widget= "date" width= "135" />
2010-09-16 09:46:23 +00:00
<field name= "state" invisible= "1" />
<field name= "invoiced" invisible= "1" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2010-08-11 09:05:24 +00:00
<record id= "purchase_order_line_form2" model= "ir.ui.view" >
<field name= "name" > purchase.order.line.form2</field>
<field name= "model" > purchase.order.line</field>
<field name= "type" > form</field>
2010-08-25 15:03:33 +00:00
<field name= "priority" eval= "20" />
2010-08-11 09:05:24 +00:00
<field name= "arch" type= "xml" >
2012-06-09 19:49:46 +00:00
<form string= "Purchase Order Line" version= "7.0" >
2012-06-28 06:40:05 +00:00
<sheet >
<label for= "order_id" class= "oe_edit_only" />
<h1 >
2012-06-29 12:36:18 +00:00
<field name= "order_id" class= "oe_inline" />
2012-06-22 06:50:14 +00:00
<label string= "," attrs= "{'invisible':[('date_order','=',False)]}" />
2012-06-28 06:40:05 +00:00
<field name= "date_order" class= "oe_inline" />
</h1>
<label for= "partner_id" class= "oe_edit_only" />
<h2 > <field name= "partner_id" /> </h2>
<group >
<group >
<field name= "name" />
<field name= "product_id" readonly= "1" />
<label for= "product_qty" />
<div >
<field name= "product_qty" readonly= "1" class= "oe_inline" />
<field name= "product_uom" readonly= "1" groups= "product.group_uom" class= "oe_inline" />
</div>
<field name= "price_unit" />
</group>
<group >
2012-06-29 12:36:18 +00:00
<field name= "date_planned" widget= "date" readonly= "1" />
2012-06-28 06:40:05 +00:00
<field name= "company_id" groups= "base.group_multi_company" widget= "selection" />
<field name= "account_analytic_id" colspan= "4" groups= "purchase.group_analytic_accounting" domain= "[('parent_id','!=',False)]" />
<field name= "taxes_id" widget= "many2many_tags"
domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
<field name= "invoiced" />
</group>
</group>
<separator string= "Manual Invoices" />
<field name= "invoice_lines" />
<separator string= "Notes" />
<field name= "notes" />
<separator string= "Stock Moves" />
<field name= "move_ids" />
</sheet>
2010-08-11 09:05:24 +00:00
</form>
</field>
</record>
2010-05-28 05:18:58 +00:00
<record id= "purchase_order_line_search" model= "ir.ui.view" >
<field name= "name" > purchase.order.line.search</field>
<field name= "model" > purchase.order.line</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Purchase Order" >
2012-06-09 19:49:46 +00:00
<group >
2010-08-10 06:18:05 +00:00
<field name= "order_id" />
2010-06-12 17:49:33 +00:00
<field name= "product_id" />
2012-06-14 06:10:42 +00:00
<field name= "partner_id" string= "Supplier" />
2012-06-09 19:49:46 +00:00
</group>
2012-06-14 06:10:42 +00:00
<newline />
2012-06-09 19:49:46 +00:00
<group expand= "0" string= "Group By..." >
2010-11-02 17:07:13 +00:00
<filter string= "Supplier" icon= "terp-partner" domain= "[]" context= "{'group_by' : 'partner_id'}" />
<separator orientation= "vertical" />
2010-10-25 12:34:08 +00:00
<filter string= "Product" icon= "terp-accessories-archiver" domain= "[]" context= "{'group_by' : 'product_id'}" />
2010-08-10 06:18:05 +00:00
<filter icon= "terp-gtk-jump-to-rtl" string= "Order Reference" domain= "[]" context= "{'group_by' :'order_id'}" />
2010-11-02 17:07:13 +00:00
<separator orientation= "vertical" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by' : 'state'}" />
2012-06-09 19:49:46 +00:00
</group>
2010-05-28 05:18:58 +00:00
</search>
</field>
</record>
2008-11-19 14:55:16 +00:00
<act_window
2011-01-27 09:49:39 +00:00
context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
2009-01-19 13:59:11 +00:00
id="act_res_partner_2_purchase_order"
2012-02-07 13:17:19 +00:00
name="RFQs and Purchases"
2010-12-20 14:56:07 +00:00
groups="purchase.group_purchase_user"
2009-01-19 13:59:11 +00:00
res_model="purchase.order"
2008-11-19 14:55:16 +00:00
src_model="res.partner"/>
2009-10-13 07:31:44 +00:00
<act_window
2011-01-27 09:49:39 +00:00
context="{'search_default_product_id': [active_id], 'default_product_id': active_id}"
2009-10-13 07:31:44 +00:00
id="action_purchase_line_product_tree"
2010-10-10 17:32:39 +00:00
name="Purchases"
2009-11-24 10:08:23 +00:00
res_model="purchase.order.line"
2010-05-05 14:14:09 +00:00
src_model="product.product"
2010-12-20 14:56:07 +00:00
groups="purchase.group_purchase_user"/>
2010-08-11 09:05:24 +00:00
2010-04-13 10:28:22 +00:00
<record id= "purchase_line_form_action2" model= "ir.actions.act_window" >
2012-06-21 07:47:17 +00:00
<field name= "name" > Based on Purchase Order Lines</field>
2010-04-13 10:28:22 +00:00
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > purchase.order.line</field>
2011-01-07 13:02:46 +00:00
<field name= "domain" > [('order_id.invoice_method','< > ','picking'), ('state','in',('confirmed','done')), ('invoiced', '=', False)]</field>
2010-04-13 10:28:22 +00:00
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2010-10-16 08:26:55 +00:00
<field name= "search_view_id" ref= "purchase_order_line_search" />
2012-06-21 07:47:17 +00:00
<field name= "help" >
Here you can track all the lines of purchase orders where the invoicing is "Based on Purchase Order Lines",
and for which you have not received a supplier invoice yet.
You can generate a draft supplier invoice based on the lines from this list.
</field>
2010-04-13 10:28:22 +00:00
</record>
<record id= "purchase_line_form_action_tree2" model= "ir.actions.act_window.view" >
<field eval= "1" name= "sequence" />
<field name= "view_mode" > tree</field>
<field name= "view_id" ref= "purchase_order_line_tree" />
<field name= "act_window_id" ref= "purchase_line_form_action2" />
</record>
<record id= "purchase_line_form_action_form2" model= "ir.actions.act_window.view" >
<field eval= "2" name= "sequence" />
<field name= "view_mode" > form</field>
2010-08-11 09:05:24 +00:00
<field name= "view_id" ref= "purchase_order_line_form2" />
2010-04-13 10:28:22 +00:00
<field name= "act_window_id" ref= "purchase_line_form_action2" />
</record>
2010-06-21 19:48:42 +00:00
<menuitem
action="purchase_line_form_action2"
id="menu_purchase_line_order_draft"
parent="menu_procurement_management_invoice"
2010-10-10 17:32:39 +00:00
sequence="72"/>
2010-05-13 13:29:23 +00:00
2010-06-11 22:02:09 +00:00
<!--
Procurements
2010-04-29 13:30:07 +00:00
-->
2010-05-13 13:29:23 +00:00
2010-04-29 13:30:07 +00:00
<record id= "view_procurement_form_inherit" model= "ir.ui.view" >
2010-06-11 22:02:09 +00:00
<field name= "name" > procurement.order.form.inherit</field>
<field name= "model" > procurement.order</field>
<field name= "inherit_id" ref= "procurement.procurement_form_view" />
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-06-09 23:18:24 +00:00
<xpath expr= "//field[@name='close_move']" position= "before" >
2010-06-11 22:02:09 +00:00
<field name= "purchase_id" />
</xpath>
</field>
2010-04-29 13:30:07 +00:00
</record>
2010-04-19 06:16:56 +00:00
2008-06-29 08:26:07 +00:00
</data>
2008-09-10 17:56:00 +00:00
</openerp>