purchase_order_search_box.xml 652 B

123456789101112131415
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="purchase_order_product_search_view" model="ir.ui.view">
  5. <field name="name">purchase.order.product.search.view</field>
  6. <field name="model">purchase.order</field>
  7. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  8. <field name="arch" type="xml">
  9. <field name="order_line" position="before">
  10. <div class="purchase_product_search_box" attrs="{'invisible': [('state','not in',['draft','sent'])]}"></div>
  11. </field>
  12. </field>
  13. </record>
  14. </data>
  15. </openerp>