sale_view.xml 1.1 KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="sale_order_mass_import_form" model="ir.ui.view">
  5. <field name="name">sale.order.mass.import.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. <xpath expr="//sheet/h1" position="before">
  10. <div class="oe_right oe_button_box" name="buttons">
  11. <button class="oe_inline oe_stat_button oe_right" name="%(action_import_product_to_sale)d" string="Products" Help="Select Products to Import"
  12. type="action" attrs="{'invisible':[('state','not in', ['draft', 'sent'])]}" icon="fa-bars" widget="statinfo"/>
  13. </div>
  14. </xpath>
  15. <field name="order_line" position="attributes">
  16. <attribute name="options">{'always_reload':true}</attribute>
  17. </field>
  18. </field>
  19. </record>
  20. </data>
  21. </openerp>