eiru_sale_utility_tool.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- sale.order -->
  5. <record id="eiru_sale_utility_tool_sale" model="ir.ui.view">
  6. <field name="name">eiru_sale_utility_tool.sale</field>
  7. <field name="model">sale.order</field>
  8. <field name="inherit_id" ref="sale.view_order_form"/>
  9. <field name="arch" type="xml">
  10. <field name="order_line" position="before">
  11. <div class="eiru-sale-utility-tool-sale" attrs="{'invisible': [('state','not in',['draft','sent'])]}"></div>
  12. </field>
  13. </field>
  14. </record>
  15. <!-- purchase.order -->
  16. <record id="views_eiru_payment_term_configurator_purchase" model="ir.ui.view">
  17. <field name="name">views_eiru_payment_term_configurator.purchase</field>
  18. <field name="model">purchase.order</field>
  19. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  20. <field name="arch" type="xml">
  21. <field name="date_order" position="after">
  22. <field name="date_quota" required="1"/>
  23. </field>
  24. <field name="order_line" position="before">
  25. <div class="purchase-payment-term-configurator" attrs="{'invisible': [('state','not in',['draft','sent'])]}"></div>
  26. </field>
  27. </field>
  28. </record>
  29. </data>
  30. </openerp>