sale_order.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <button name="%(sale.action_view_sale_advance_payment_inv)d" states="manual" position="replace">
  10. <button name="create_invoice" string="Crear Factura" type="object" states="manual" groups="base.group_user"/>
  11. </button>
  12. <field name="payment_term" position="replace"/>
  13. <field name="pricelist_id" position="after">
  14. <label for="contado" string="Forma de pago"/>
  15. <div>
  16. <label for="contado" string="Contado"/>
  17. <field name="contado" attrs="{'readonly': [('state','!=','draft')]}"/>
  18. <label for="credito" string="Crédito"/>
  19. <field name="credito" attrs="{'readonly' : ['|',('state','!=','draft')]}"/>
  20. <field name="payment_term" options="{'no_create': True}" attrs="{'invisible' : [('credito', '=', False )],'readonly': [('state','!=','draft')]}"/>
  21. </div>
  22. </field>
  23. </field>
  24. </record>
  25. <record id="view_order_form_inherit" model="ir.ui.view">
  26. <field name="name">view_order_form_inherit</field>
  27. <field name="model">sale.order</field>
  28. <field name="inherit_id" ref="sale_stock.view_order_form_inherit"/>
  29. <field name="arch" type="xml">
  30. <field name="order_policy" position="replace">
  31. <field name="order_policy"/>
  32. </field>
  33. </field>
  34. </record>
  35. </data>
  36. </openerp>