purchase_order.xml 1.0 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="purchase_order_form_invoice_credit" model="ir.ui.view">
  5. <field name="name">purchase_order_form_invoice_credit</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="payment_term_id" position="replace"/>
  10. <field name="picking_type_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_id" options="{'no_create': True}" attrs="{'invisible' : [('credito', '=', False )],'readonly': [('state','!=','draft')]}"/>
  18. </div>
  19. </field>
  20. </field>
  21. </record>
  22. </data>
  23. </openerp>