123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- Sale Order Tree -->
- <record id="sale_order_button_tree" model="ir.ui.view">
- <field name="name">pos_buttons.sale.order.button.tree</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale.view_order_tree"/>
- <field name="arch" type="xml">
- <xpath expr='//tree[@string="Sales Orders"]' position='attributes'>
- <attribute name="create">false</attribute>
- </xpath>
- </field>
- </record>
- <record id="sale_order_button_quotation_tree" model="ir.ui.view">
- <field name="name">pos_buttons.sale.order.button.quotation.tree</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale.view_quotation_tree"/>
- <field name="arch" type="xml">
- <xpath expr='//tree[@string="Quotation"]' position='attributes'>
- <attribute name="create">false</attribute>
- </xpath>
- </field>
- </record>
-
- <!-- Sale Order Form -->
- <record id="sale_order_button_form" model="ir.ui.view">
- <field name="name">pos_buttons.sale.order.button.form</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale.view_order_form"/>
- <field name="arch" type="xml">
- <xpath expr='//form[@string="Sales Order"]' position='attributes'>
- <attribute name="create">false</attribute>
- </xpath>
- <xpath expr='//form[@string="Sales Order"]' position='attributes'>
- <attribute name="edit">false</attribute>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|