account_interest.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- from -->
  5. <record id="eiru_account_interest_from" model="ir.ui.view">
  6. <field name="name">eiru.account.interest.from</field>
  7. <field name="model">account.interest</field>
  8. <field name="arch" type="xml">
  9. <form string="Interés por mora" create="0" edit="0">
  10. <header>
  11. <field name="state" widget="statusbar"/>
  12. </header>
  13. <sheet>
  14. <h1>
  15. <field name='name'/>
  16. </h1>
  17. <group col="2" >
  18. <group>
  19. <field name="customer_id" string="Cliente" />
  20. <field name="reference" string="Factura" />
  21. <field name="currency_id" string="Moneda" />
  22. </group>
  23. <group>
  24. <field name="date"/>
  25. </group>
  26. </group>
  27. <notebook>
  28. <page string="Detalles">
  29. <div class="account-interes-invoice"></div>
  30. <field name="lines_ids" >
  31. <tree colors="blue:state == 'invoiced'; red:state == 'open'; red:state =='invoice_cancel'; red:state =='invoice_draft'; gray:state == 'discount'; black:state == 'paid'" string="Detalles de la deuda" editable="bottom" create="false" delete="false">
  32. <field name="date_maturity" string="Vencimiento"/>
  33. <!-- <field name="cuota_nro" string="Nro cuota"/> -->
  34. <field name="amount" string="Monto de la cuota"/>
  35. <field name="amount_residual" string="Saldo pendiente"/>
  36. <field name="expired_days" string="Días atrasados"/>
  37. <field name="amount_interest" string="interés calculado"/>
  38. <field name="amount_dicount" string="Descuento"/>
  39. <field name="reference" string="Factura"/>
  40. <field name="state" string="Estado"/>
  41. </tree>
  42. </field>
  43. </page>
  44. </notebook>
  45. <group>
  46. <field name="comment" string="Información adicional"/>
  47. </group>
  48. </sheet>
  49. </form>
  50. </field>
  51. </record>
  52. <!-- Tree -->
  53. <record id="eiru_account_interest_tree" model="ir.ui.view">
  54. <field name="name">eiru.account.interest.tree</field>
  55. <field name="model">account.interest</field>
  56. <field name="arch" type="xml">
  57. <tree colors="blue:state == 'lines_paid'; red:state == 'lines_open'; gray:state == 'paid'" create="0" edit="0">
  58. <field name="name" string="Nombre" />
  59. <field name="date" string="Fecha"/>
  60. <field name="customer_id" string="Cliente"/>
  61. <!-- <field name="cuota_nro" string="Nº Cuota"/> -->
  62. <field name="invoice_id" string="Nº Factura"/>
  63. <field name="currency_id" string="Moneda"/>
  64. <field name="state" string="Estado"/>
  65. </tree>
  66. </field>
  67. </record>
  68. <!-- Search -->
  69. <record id="eiru_account_interest_search" model="ir.ui.view">
  70. <field name="name">eiru.account.interest.search</field>
  71. <field name="model">account.interest</field>
  72. <field name="arch" type="xml">
  73. <search>
  74. <field name="customer_id" string="Cliente"/>
  75. <field name="invoice_id" string="Nº Factura"/>
  76. <group string="Agrupar por">
  77. <filter string="Cliente " context="{'group_by':'customer_id'}"/>
  78. <filter string="Moneda" context="{'group_by': 'currency_id'}"/>
  79. <filter string="Estado" context="{'group_by':'state'}"/>
  80. </group>
  81. </search>
  82. </field>
  83. </record>
  84. <!-- Actions -->
  85. <record id="eiru_account_interest_actions" model="ir.actions.act_window">
  86. <field name="name">Interés por mora</field>
  87. <field name="res_model">account.interest</field>
  88. <field name="view_type">form</field>
  89. <field name="view_mode">tree,form</field>
  90. <field name="target">current</field>
  91. </record>
  92. <!-- Menu -->
  93. <menuitem id="eiru_account_interest_menu" name="Interés moratorios" parent="account.menu_finance" sequence="2"/>
  94. <menuitem id="eiru_account_interest" name="Interés por mora" parent="eiru_account_interest_menu" action="eiru_account_interest_actions" sequence="1" />
  95. </data>
  96. </openerp>