sale_order.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="sale_order_form_invoice_credit" model="ir.ui.view">
  5. <field name="name">sale_order_form_invoice_credit</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="payment_term" position="replace"/>
  10. <field name="pricelist_id" position="after">
  11. <label for="contado" string="Forma de pago"/>
  12. <div>
  13. <label for="contado" string="Contado"/>
  14. <field name="contado" attrs="{'readonly': [('state','!=','draft')]}"/>
  15. <label for="credito" string="Crédito"/>
  16. <field name="credito" attrs="{'readonly' : ['|',('state','!=','draft')]}"/>
  17. <field name="payment_term" options="{'no_create': True}" attrs="{'invisible' : [('credito', '=', False )],'readonly': [('state','!=','draft')]}"/>
  18. </div>
  19. </field>
  20. </field>
  21. </record>
  22. <record id="view_order_form_inherit" model="ir.ui.view">
  23. <field name="name">view_order_form_inherit</field>
  24. <field name="model">sale.order</field>
  25. <field name="inherit_id" ref="sale_stock.view_order_form_inherit"/>
  26. <field name="arch" type="xml">
  27. <field name="order_policy" position="replace">
  28. <field name="order_policy"/>
  29. </field>
  30. </field>
  31. </record>
  32. </data>
  33. </openerp>