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>
|
2008-10-31 22:43:31 +00:00
|
|
|
<menuitem icon="terp-purchase" id="menu_purchase_root" name="Purchase Management"
|
|
|
|
groups="group_purchase_user"/>
|
2008-08-27 11:26:37 +00:00
|
|
|
|
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>
|
2008-09-16 10:37:53 +00:00
|
|
|
<record model="ir.ui.view" id="view_purchase_order_graph">
|
|
|
|
<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">
|
|
|
|
<form string="Purchase Order">
|
2008-09-03 15:36:31 +00:00
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="name" select="1"/>
|
2008-09-03 16:02:26 +00:00
|
|
|
<field name="date_order" select="2"/>
|
2008-09-03 15:36:31 +00:00
|
|
|
<field name="invoiced" select="2"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)"/>
|
|
|
|
<field name="origin" select="2"/>
|
2008-09-03 16:02:26 +00:00
|
|
|
<field name="shipped" select="2"/>
|
2008-09-03 15:36:31 +00:00
|
|
|
</group>
|
2008-08-25 22:20:48 +00:00
|
|
|
<notebook colspan="4">
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Purchase Order">
|
2008-08-25 22:20:48 +00:00
|
|
|
<field name="partner_id" on_change="onchange_partner_id(partner_id)" select="1" domain="[('supplier','=', 1)]"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="partner_address_id"/>
|
|
|
|
<field domain="[('type','=','purchase')]" name="pricelist_id"/>
|
|
|
|
<field name="partner_ref" select="2"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2008-10-20 11:24:44 +00:00
|
|
|
<field colspan="4" name="order_line" nolabel="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<group col="7" colspan="4">
|
|
|
|
<field name="amount_untaxed" sum="Untaxed amount"/>
|
|
|
|
<field name="amount_tax"/>
|
|
|
|
<field name="amount_total" sum="Total amount"/>
|
|
|
|
<button name="button_dummy" states="draft" string="Compute" type="object"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</group>
|
2008-11-06 22:51:39 +00:00
|
|
|
<group col="11" colspan="4">
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="state" readonly="1"/>
|
2009-01-28 15:14:06 +00:00
|
|
|
<button name="purchase_confirm" states="draft" string="Confirm Purchase Order" icon="gtk-execute"/>
|
|
|
|
<button name="purchase_appbuyer" states="wait_auth" string="Approve Purchase" icon="gtk-ok"/>
|
|
|
|
<button name="purchase_approve" states="confirmed" string="Approved by Supplier" icon="gtk-ok"/>
|
|
|
|
<button name="purchase_cancel" states="draft,confirmed,wait_auth" string="Cancel Purchase Order" icon="gtk-cancel"/>
|
|
|
|
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
|
|
|
|
<button name="action_cancel" states="approved,except_picking,except_invoice" string="Cancel Purchase Order" type="object" icon="gtk-cancel"/>
|
2008-08-27 11:26:37 +00:00
|
|
|
|
2009-01-28 15:14:06 +00:00
|
|
|
<button name="picking_ok" states="except_picking" string="Manually Corrected" icon="gtk-convert"/>
|
|
|
|
<button name="invoice_ok" states="except_invoice" string="Manually Corrected" icon="gtk-convert"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
2008-08-27 23:48:15 +00:00
|
|
|
<page string="Delivery & Invoices">
|
2008-09-03 16:02:26 +00:00
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Delivery" colspan="2"/>
|
|
|
|
<field name="dest_address_id" on_change="onchange_dest_address_id(dest_address_id)"/>
|
|
|
|
<field name="minimum_planned_date"/>
|
|
|
|
<field name="location_id"/>
|
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Invoice Control" colspan="2"/>
|
|
|
|
<field name="invoice_method"/>
|
2008-11-19 14:55:16 +00:00
|
|
|
<field name="invoice_id" readonly="1"/>
|
2009-01-21 13:55:04 +00:00
|
|
|
<field name="fiscal_position" groups="base.group_extended"/>
|
2008-09-03 16:02:26 +00:00
|
|
|
</group>
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2008-09-03 15:36:31 +00:00
|
|
|
<separator string="Purchase Control" colspan="4"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="validator"/>
|
|
|
|
<field name="date_approve"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Notes">
|
|
|
|
<field colspan="4" name="notes" nolabel="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-27 11:26:37 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="purchase_form_action" model="ir.actions.act_window">
|
2008-07-01 19:20:40 +00:00
|
|
|
<field name="name">Purchase Orders</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">purchase.order</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<menuitem action="purchase_form_action" id="menu_purchase_form_action" parent="purchase.menu_purchase_root"/>
|
2008-07-01 19:20:40 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="purchase_form_action2" model="ir.actions.act_window">
|
2008-07-01 19:20:40 +00:00
|
|
|
<field name="name">Request For Quotations</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">purchase.order</field>
|
|
|
|
<field name="domain">[('state','=','draft')]</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<menuitem action="purchase_form_action2" id="menu_purchase_order_draft" parent="purchase.menu_purchase_form_action"/>
|
2008-07-01 19:20:40 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="purchase_form_action3" model="ir.actions.act_window">
|
2008-07-01 19:20:40 +00:00
|
|
|
<field name="name">Purchase Order Waiting Approval</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">purchase.order</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="domain">[('state','=','confirmed')]</field>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<menuitem action="purchase_form_action3" id="menu_purchase_form_action3" parent="purchase.menu_purchase_form_action"/>
|
2008-07-01 19:20:40 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="purchase_form_action4" model="ir.actions.act_window">
|
|
|
|
<field name="name">Purchase Orders in Progress</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">purchase.order</field>
|
|
|
|
<field name="view_type">form</field>
|
2008-09-09 12:24:44 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,graph</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="domain">[('state','=','approved')]</field>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<menuitem action="purchase_form_action4" id="menu_purchase_form_action4" parent="purchase.menu_purchase_form_action"/>
|
2008-07-01 19:20:40 +00:00
|
|
|
|
|
|
|
<record id="purchase_form_action_new" model="ir.actions.act_window">
|
|
|
|
<field name="name">New Purchase Order</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">purchase.order</field>
|
|
|
|
<field name="view_mode">form,tree</field>
|
|
|
|
</record>
|
|
|
|
<menuitem action="purchase_form_action_new" id="menu_purchase_form_action_new" parent="purchase.menu_purchase_root"/>
|
|
|
|
|
2008-08-27 11:26:37 +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">
|
|
|
|
<tree string="Purchase Order">
|
2008-09-03 15:40:08 +00:00
|
|
|
<field name="name" string="Reference"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="date_order"/>
|
2008-09-03 15:36:31 +00:00
|
|
|
<field name="minimum_planned_date"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="location_id"/>
|
2008-08-27 11:26:37 +00:00
|
|
|
<field name="invoiced_rate" widget="progressbar"/>
|
|
|
|
<field name="shipped_rate" widget="progressbar"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="amount_untaxed"/>
|
|
|
|
<field name="origin"/>
|
|
|
|
<field name="state"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-27 11:26:37 +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">
|
|
|
|
<form string="Purchase Order Line">
|
2008-06-29 08:26:07 +00:00
|
|
|
<notebook>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Order Line">
|
2009-01-20 06:04:07 +00:00
|
|
|
<field colspan="4" context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order, parent.fiscal_position)"/>
|
2009-03-10 07:12:13 +00:00
|
|
|
<field context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" name="product_qty" on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order, parent.fiscal_position)"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="product_uom" on_change="product_uom_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order)"/>
|
|
|
|
<field colspan="4" name="name"/>
|
|
|
|
<field name="date_planned"/>
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="account_analytic_id"/>
|
|
|
|
<field name="price_subtotal" readonly="1"/>
|
2009-01-22 23:15:05 +00:00
|
|
|
<field colspan="4" name="taxes_id" domain="[('parent_id','=',False),('type_tax_use','<>','sale')]"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Notes">
|
|
|
|
<field colspan="4" name="notes" nolabel="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</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">
|
|
|
|
<tree colors="red:date_planned<=current_date" string="Purchase Order Line">
|
|
|
|
<field name="date_planned"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="product_qty"/>
|
|
|
|
<field name="product_uom"/>
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="price_subtotal"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2008-08-27 11:26:37 +00:00
|
|
|
|
2008-11-19 14:55:16 +00:00
|
|
|
<act_window
|
2009-01-19 13:59:11 +00:00
|
|
|
context="{'partner_id': active_id}"
|
|
|
|
domain="[('partner_id', '=', active_id)]"
|
|
|
|
id="act_res_partner_2_purchase_order"
|
|
|
|
name="Purchase orders"
|
|
|
|
res_model="purchase.order"
|
2008-11-19 14:55:16 +00:00
|
|
|
src_model="res.partner"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|