res_partner.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="account_statement_page" model="ir.ui.view">
  5. <field name="name">account_statement_page</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <notebook>
  10. <page name="account_statement" string="Estado de Cuentas">
  11. <notebook>
  12. <page name="payments" string="Cobros Realizados" attrs="{'invisible':[('customer', '=', False)]}">
  13. <group style="position:absolute; padding-top:10px;width: 500px;">
  14. <field name="total_debt_paid" string="Total cobros realizados" context="{'default_id': active_id}"/>
  15. </group>
  16. <div class="oe_right oe_button_box">
  17. <button id="btn_debt_paid" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Cobros Realizados" custom='click_debt_paid'/>
  18. </div>
  19. <field name="debt_paid_ids" readonly="1">
  20. <tree string="Account Move line" create="false" delete="false">
  21. <field name="journal_id"/>
  22. <field name="ref"/>
  23. <field name="move_id"/>
  24. <field name="date_created"/>
  25. <field name="credit" string="Monto"/>
  26. </tree>
  27. </field>
  28. </page>
  29. <page name="receive" string="Pendientes de Cobro" attrs="{'invisible':[('customer', '=', False)]}">
  30. <group style="position:absolute; padding-top:10px;width: 500px;">
  31. <field name="credit" string="Total cobros pendientes"/>
  32. </group>
  33. <div class="oe_right oe_button_box">
  34. <button id="btn_debt_pending" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Cobros Pendientes" custom='click_debt_pending'/>
  35. </div>
  36. <field name="debt_pending_ids" readonly="1">
  37. <tree string="Account Move line" editable="bottom" create="false" delete="false" colors="red:(not date_maturity or date_maturity&lt;=current_date) and debit&gt;0">
  38. <field name="journal_id"/>
  39. <field name="ref"/>
  40. <field name="move_id"/>
  41. <field name="date_maturity"/>
  42. <field name="debit" string="Monto"/>
  43. </tree>
  44. </field>
  45. </page>
  46. <page name="payments1" string="Pagos Realizados" attrs="{'invisible':[('supplier', '=', False)]}">
  47. <group style="position:absolute; padding-top:10px;width: 500px;">
  48. <field name="total_payment" string="Total pagos realizados" context="{'default_id': active_id}"/>
  49. </group>
  50. <div class="oe_right oe_button_box">
  51. <button id="btn_payment_done" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Pagos Realizados" custom='click_payment_done'/>
  52. </div>
  53. <field name="payment_done_ids" readonly="1">
  54. <tree string="Account Move line" create="false" delete="false">
  55. <field name="journal_id"/>
  56. <field name="ref"/>
  57. <field name="move_id"/>
  58. <field name="date_created"/>
  59. <field name="credit" string="Monto"/>
  60. </tree>
  61. </field>
  62. </page>
  63. <page name="payments2" string="Pendientes de Pago" attrs="{'invisible':[('supplier', '=', False)]}">
  64. <group style="position:absolute; padding-top:10px;width: 500px;">
  65. <field name="debit" string="Total pagos pendientes"/>
  66. </group>
  67. <div class="oe_right oe_button_box">
  68. <button id="btn_payment_pending" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Pagos Pendientes" custom='click_payment_pending'/>
  69. </div>
  70. <field name="payment_pending_ids" readonly="1">
  71. <tree string="Account Move line" editable="bottom" create="false" delete="false" colors="red:(not date_maturity or date_maturity&lt;=current_date) and credit&gt;0">
  72. <field name="journal_id"/>
  73. <field name="ref"/>
  74. <field name="move_id"/>
  75. <field name="date_maturity"/>
  76. <field name="credit" string="Monto"/>
  77. </tree>
  78. </field>
  79. </page>
  80. </notebook>
  81. </page>
  82. </notebook>
  83. </field>
  84. </record>
  85. <record id="account_statement_page3" model="ir.ui.view">
  86. <field name="name">account_statement_page3</field>
  87. <field name="model">res.partner</field>
  88. <field name="inherit_id" ref="account.view_partner_property_form"/>
  89. <field name="arch" type="xml">
  90. <xpath expr="//field[@name='debit']" position="attributes">
  91. <attribute name="invisible">True</attribute>
  92. </xpath>
  93. <xpath expr="//field[@name='credit']" position="attributes">
  94. <attribute name="invisible">True</attribute>
  95. </xpath>
  96. </field>
  97. </record>
  98. <record id="account_statement_page2" model="ir.ui.view">
  99. <field name="name">account_statement_page2</field>
  100. <field name="model">res.partner</field>
  101. <field name="inherit_id" ref="account_followup.view_partner_inherit_followup_form"/>
  102. <field name="arch" type="xml">
  103. <xpath expr="//page[@name='followup_tab']" position="attributes">
  104. <attribute name="invisible">True</attribute>
  105. </xpath>
  106. </field>
  107. </record>
  108. </data>
  109. </openerp>