2010-01-18 10:43:33 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="purchase_order_tree_inherit">
|
|
|
|
<field name="name">purchase.order.tree.inherit</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="model">purchase.order</field>
|
|
|
|
<field name="inherit_id" ref="purchase.purchase_order_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="name" position="after">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="requisition_id" groups="base.group_extended"/>
|
2010-01-18 10:43:33 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="purchase_order_form_inherit">
|
|
|
|
<field name="name">purchase.order.form.inherit</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="model">purchase.order</field>
|
|
|
|
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="partner_ref" position="after">
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="requisition_id" groups="base.group_extended"/>
|
2010-01-18 10:43:33 +00:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-04-09 07:18:17 +00:00
|
|
|
<record model="ir.ui.view" id="view_purchase_requisition_form">
|
|
|
|
<field name="name">purchase.requisition.form</field>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="type">form</field>
|
2010-04-09 07:18:17 +00:00
|
|
|
<field name="model">purchase.requisition</field>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="arch" type="xml">
|
2010-04-09 07:18:17 +00:00
|
|
|
<form string="Purchase Requisition">
|
2010-04-09 07:47:07 +00:00
|
|
|
<group colspan="4" col="6">
|
2010-04-29 08:08:26 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="exclusive"/>
|
2010-04-09 07:47:07 +00:00
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date_end"/>
|
|
|
|
<field name="origin"/>
|
2010-04-29 08:08:26 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2010-04-09 07:47:07 +00:00
|
|
|
</group>
|
2010-04-16 04:42:36 +00:00
|
|
|
|
2010-04-09 00:32:46 +00:00
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Products">
|
|
|
|
<field name="line_ids" colspan="4" nolabel="1">
|
|
|
|
<tree string="Products" editable="bottom">
|
2010-05-05 12:48:59 +00:00
|
|
|
<field name="product_id" on_change="onchange_product_id(product_id,product_uom_id)"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="product_qty"/>
|
2010-04-12 10:23:28 +00:00
|
|
|
<field name="product_uom_id"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
</tree>
|
|
|
|
<form string="Products" editable="bottom">
|
2010-05-05 12:48:59 +00:00
|
|
|
<field name="product_id" />
|
2010-04-23 07:24:58 +00:00
|
|
|
<field name="product_qty"/>
|
2010-05-05 12:48:59 +00:00
|
|
|
<field name="product_uom_id" />
|
2010-04-23 07:24:58 +00:00
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
</form>
|
2010-04-23 07:24:58 +00:00
|
|
|
|
2010-04-09 00:32:46 +00:00
|
|
|
</field>
|
2010-05-04 12:54:03 +00:00
|
|
|
<separator colspan="4"/>
|
|
|
|
<group col="8" colspan="4">
|
|
|
|
<field name="state" select="1" readonly ="1"/>
|
|
|
|
<button name="tender_in_progress" states="draft" string="Confirm" type="object" icon="gtk-apply" />
|
|
|
|
<button name="tender_reset" states="done,cancel" string="Reset to Draft" type="object" icon="gtk-convert" />
|
|
|
|
<button name="tender_done" states="in_progress" string="Done" type="object" icon="gtk-jump-to" />
|
|
|
|
<button name="tender_cancel" states="draft,in_progress" string="Cancel" type="object" icon="gtk-cancel" />
|
|
|
|
</group>
|
2010-04-09 00:32:46 +00:00
|
|
|
</page>
|
|
|
|
<page string="Notes">
|
|
|
|
<field name="description" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
<page string="Quotations">
|
2010-04-09 13:57:28 +00:00
|
|
|
<group col="8" colspan="4">
|
2010-05-19 11:44:36 +00:00
|
|
|
<button name="%(action_purchase_requisition_partner)d" string="Requests for Quotation" type="action" icon="gtk-execute" />
|
2010-04-09 13:57:28 +00:00
|
|
|
<label colspan="6" string=""/>
|
|
|
|
</group>
|
|
|
|
<field name="purchase_ids" nolabel="1" colspan="4"/>
|
|
|
|
</page>
|
2010-04-09 00:32:46 +00:00
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-04-09 07:18:17 +00:00
|
|
|
<record model="ir.ui.view" id="view_purchase_requisition_tree">
|
|
|
|
<field name="name">purchase.requisition.tree</field>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="type">tree</field>
|
2010-04-09 07:18:17 +00:00
|
|
|
<field name="model">purchase.requisition</field>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="arch" type="xml">
|
2010-04-09 07:18:17 +00:00
|
|
|
<tree string="Purchase Requisition">
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="user_id"/>
|
2010-05-04 12:54:03 +00:00
|
|
|
<field name="purchase_ids"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date_end"/>
|
2010-04-09 07:47:07 +00:00
|
|
|
<field name="origin"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-04-16 04:42:36 +00:00
|
|
|
|
2010-04-16 06:17:50 +00:00
|
|
|
<record id="view_purchase_requisition_filter" model="ir.ui.view">
|
|
|
|
<field name="name">purchase.requisition.list.select</field>
|
|
|
|
<field name="model">purchase.requisition</field>
|
2010-04-09 13:57:28 +00:00
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-04-16 06:17:50 +00:00
|
|
|
<search string="Search Purchase Requisition">
|
2010-04-09 13:57:28 +00:00
|
|
|
<group col='10' colspan='4'>
|
2010-05-04 12:54:03 +00:00
|
|
|
<filter icon="terp-purchase" string="Current" domain="[('state','=','draft,in_progress')]" separator="1" help="Current Purchaes Requisition"/>
|
|
|
|
<filter icon="terp-purchase" string="Done" domain="[('state','=','done')]" separator="1" help="Current Purchaes Requisition"/>
|
2010-04-09 13:57:28 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-04-29 08:08:26 +00:00
|
|
|
<field name="name" string="Requisition Reference"/>
|
|
|
|
<field name="purchase_ids"/>
|
|
|
|
<field name="user_id" widget="selection">
|
2010-04-23 07:24:58 +00:00
|
|
|
<filter icon="terp-partner" domain="[('create_uid','=',uid)]" help="My Requisition "/>
|
2010-04-09 13:57:28 +00:00
|
|
|
</field>
|
2010-04-29 08:08:26 +00:00
|
|
|
<field name="exclusive"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
2010-04-09 13:57:28 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group expand="1" string="Group By..." colspan="4" col="10">
|
2010-04-23 07:24:58 +00:00
|
|
|
<filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
|
2010-05-04 12:54:03 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-04-12 05:15:29 +00:00
|
|
|
<filter string="Date Start" icon="terp-purchase" domain="[]" context="{'group_by':'date_start'}"/>
|
2010-04-09 13:57:28 +00:00
|
|
|
<filter string="Date End" icon="terp-purchase" domain="[]" context="{'group_by':'date_end'}"/>
|
2010-05-04 12:54:03 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Origin" icon="terp-purchase" domain="[]" context="{'group_by':'origin'}"/>
|
2010-04-09 13:57:28 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-04-23 07:24:58 +00:00
|
|
|
|
2010-04-16 04:42:36 +00:00
|
|
|
|
2010-04-09 07:18:17 +00:00
|
|
|
<record model="ir.actions.act_window" id="action_purchase_requisition">
|
|
|
|
<field name="name">Purchase Requisitions</field>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
2010-04-09 07:18:17 +00:00
|
|
|
<field name="res_model">purchase.requisition</field>
|
2010-04-09 00:32:46 +00:00
|
|
|
<field name="view_type">form</field>
|
2010-04-23 07:24:58 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="search_view_id" ref="view_purchase_requisition_filter"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
</record>
|
2010-01-18 10:43:33 +00:00
|
|
|
|
2010-04-23 07:24:58 +00:00
|
|
|
<menuitem
|
|
|
|
id="menu_purchase_requisition_pro_mgt"
|
2010-04-09 07:47:07 +00:00
|
|
|
sequence="0"
|
2010-04-16 09:16:25 +00:00
|
|
|
groups="base.group_extended"
|
2010-04-23 07:24:58 +00:00
|
|
|
parent="purchase.menu_procurement_management"
|
2010-04-09 07:18:17 +00:00
|
|
|
action="action_purchase_requisition"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
|
|
|
|
<record model="ir.ui.view" id="product_normal_form_view_inherit">
|
|
|
|
<field name="name">product.form.inherit</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="model">product.product</field>
|
|
|
|
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="supply_method" position="after">
|
|
|
|
<group colspan="2" col="2" attrs="{'invisible': [('supply_method','<>','buy')]}">
|
2010-04-09 07:18:17 +00:00
|
|
|
<field name="purchase_requisition"/>
|
2010-04-09 00:32:46 +00:00
|
|
|
</group>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-18 10:43:33 +00:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|