sale_view.xml 624 B

123456789101112131415
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="view_order_form" model="ir.ui.view">
  5. <field name="name">sale.order.form</field>
  6. <field name="model">sale.order</field>
  7. <field name="inherit_id" ref="sale.view_order_form"/>
  8. <field name="arch" type="xml">
  9. <field name="order_line" position="before">
  10. <button name="%(action_sale_add_multiple)d" type="action" string="Add multiple" attrs="{'invisible':[('state','not in',['draft','sent'])]}"/>
  11. </field>
  12. </field>
  13. </record>
  14. </data>
  15. </openerp>