views.xml 1.6 KB

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