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-09 07:18:17 +00:00
|
|
|
<field name="requisition_id"/>
|
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-09 07:18:17 +00:00
|
|
|
<field name="requisition_id"/>
|
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 00:32:46 +00:00
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="user_id" select="1"/>
|
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date_end"/>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Products">
|
|
|
|
<field name="line_ids" colspan="4" nolabel="1">
|
|
|
|
<tree string="Products" editable="bottom">
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="product_uom_id"/>
|
|
|
|
<field name="product_qty"/>
|
|
|
|
</tree>
|
|
|
|
<form string="Products" editable="bottom">
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="product_uom_id"/>
|
|
|
|
<field name="product_qty"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
<page string="Notes">
|
|
|
|
<field name="description" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
|
|
|
<page string="Quotations">
|
|
|
|
<field name="purchase_ids" nolabel="1" colspan="4"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
<field name="state" select="1"/>
|
|
|
|
</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"/>
|
|
|
|
<field name="date_start"/>
|
|
|
|
<field name="date_end"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
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>
|
|
|
|
</record>
|
2010-01-18 10:43:33 +00:00
|
|
|
|
2010-04-09 06:53:17 +00:00
|
|
|
<menuitem
|
2010-04-09 07:18:17 +00:00
|
|
|
id="menu_purchase_requisition_pro_mgt"
|
2010-04-09 06:53:17 +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>
|