account_invoice.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="interest_account_invoice_form" model="ir.ui.view">
  5. <field name="name">account.invoice.form</field>
  6. <field name="model">account.invoice</field>
  7. <field name="inherit_id" ref="account.invoice_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='date_invoice']" position="before">
  10. <label for="date_invoice" string="Recalcular intereses" />
  11. <div>
  12. <field name="date_invoice" class="oe_inline" options="{'no_create': True}"/>
  13. <button name="update_interest" states="open"
  14. string="Actualizar Interes" class="oe_link"
  15. type="object" help="Recalcular intereses"/>
  16. </div>
  17. <!-- <label for="date_invoice" string="Eliminar intereses"/>
  18. <div>
  19. <field name="date_invoice" class="oe_inline" options="{'no_create': True}"/>
  20. <button name="delet_interest" type="object" string="Eliminar Interes" states="open"
  21. class="oe_link" attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',True)]}" groups="base.group_user"/>
  22. </div> -->
  23. </xpath>
  24. </field>
  25. </record>
  26. <record id="invoice_interest" model="ir.ui.view">
  27. <field name="name">account.invoice_interest</field>
  28. <field name="model">account.invoice</field>
  29. <field name="inherit_id" ref="account.invoice_form"/>
  30. <field name="arch" type="xml">
  31. <notebook>
  32. <page string="Intereses">
  33. <button name="actualizarInteres" type="object" string="Actualizar Linea de Interes"
  34. class="oe_link" groups="base.group_user" attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',True)]}"/>
  35. <field name="interes_ids" nolabel='1' attrs="{'invisible': ['|', ('state','!=','open'), ('sent','=',True)]}">
  36. <tree string="Intereses" editable='bottom' delete='false' create='false' >
  37. <field name="name_product" string="Decripcion" readonly="1"/>
  38. <field name="price_subtotal" string="Monto Interes" readonly="1"/>
  39. <field name="date" string="Fecha de Creacion" readonly="1"/>
  40. <field name="state" string="Estado"/>
  41. </tree>
  42. </field>
  43. </page>
  44. </notebook>
  45. </field>
  46. </record>
  47. </data>
  48. </openerp>