12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- Account Invoice Tree -->
- <record id="account_invoice_button_tree" model="ir.ui.view">
- <field name="name">pos_buttons.account.invoice.button.tree</field>
- <field name="model">account.invoice</field>
- <field name="inherit_id" ref="account.invoice_tree"/>
- <field name="arch" type="xml">
- <xpath expr='//tree[@string="Invoice"]' position='attributes'>
- <attribute name="create">false</attribute>
- </xpath>
- </field>
- </record>
-
- <!-- Customer: Account Invoice Form -->
- <record id="account_invoice_button_form" model="ir.ui.view">
- <field name="name">pos_buttons.account.invoice.button.form</field>
- <field name="model">account.invoice</field>
- <field name="inherit_id" ref="account.invoice_form"/>
- <field name="arch" type="xml">
- <xpath expr='//form[@string="Invoice"]' position='attributes'>
- <attribute name="create">false</attribute>
- </xpath>
- <xpath expr='//form[@string="Invoice"]' position='attributes'>
- <attribute name="edit">false</attribute>
- </xpath>
- </field>
- </record>
-
- <!-- Supplier: Account Invoice Form -->
- <record id="account_supplier_invoice_button_form" model="ir.ui.view">
- <field name="name">pos_buttons.account.supplier.invoice.button.form</field>
- <field name="model">account.invoice</field>
- <field name="inherit_id" ref="account.invoice_supplier_form"/>
- <field name="arch" type="xml">
- <xpath expr='//form[@string="Supplier Invoice"]' position='attributes'>
- <attribute name="create">false</attribute>
- </xpath>
- <xpath expr='//form[@string="Supplier Invoice"]' position='attributes'>
- <attribute name="edit">false</attribute>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|