You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
5.8 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2018 ForgeFlow, S.L. (https://www.forgeflow.com)
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <!-- wizard action on res.partner -->
  6. <record id="activity_statement_wizard_action" model="ir.actions.act_window">
  7. <field name="name">Partner Activity Statement</field>
  8. <field name="binding_model_id" ref="base.model_res_partner" />
  9. <field name="res_model">activity.statement.wizard</field>
  10. <field name="view_mode">form</field>
  11. <field
  12. name="groups_id"
  13. eval="[(4, ref('partner_statement.group_activity_statement'))]"
  14. />
  15. <field name="target">new</field>
  16. </record>
  17. <record id="outstanding_statement_wizard_action" model="ir.actions.act_window">
  18. <field name="name">Partner Outstanding Statement</field>
  19. <field name="binding_model_id" ref="base.model_res_partner" />
  20. <field name="res_model">outstanding.statement.wizard</field>
  21. <field name="view_mode">form</field>
  22. <field
  23. name="groups_id"
  24. eval="[(4, ref('partner_statement.group_outstanding_statement'))]"
  25. />
  26. <field name="target">new</field>
  27. </record>
  28. <!-- wizard view -->
  29. <record id="statement_common_view" model="ir.ui.view">
  30. <field name="name">Statement Common Wizard View</field>
  31. <field name="model">statement.common.wizard</field>
  32. <field name="arch" type="xml">
  33. <form name="Report Options">
  34. <div style="text-align:justify" name="info">
  35. <span
  36. class="o_form_label"
  37. >Aging details can be shown in the report, expressed in aging
  38. buckets, so the partner can review how much is open, due or overdue.
  39. </span>
  40. </div>
  41. <hr />
  42. <group>
  43. <group name="main_info">
  44. <field
  45. name="company_id"
  46. options="{'no_create': True}"
  47. groups="base.group_multi_company"
  48. />
  49. <label for="account_type" />
  50. <field name="account_type" nolabel="1" widget="radio" />
  51. </group>
  52. <group name="aging_report">
  53. <field name="show_aging_buckets" />
  54. <field name="aging_type" />
  55. </group>
  56. </group>
  57. <group>
  58. <group name="dates">
  59. <field name="date_end" />
  60. </group>
  61. <group name="multiple_partners">
  62. <field name="number_partner_ids" readonly="1" invisible="1" />
  63. <field
  64. name="filter_partners_non_due"
  65. attrs="{'invisible': [('number_partner_ids', '=', 1)]}"
  66. />
  67. <field
  68. name="filter_negative_balances"
  69. attrs="{'invisible': [('number_partner_ids', '=', 1)]}"
  70. />
  71. </group>
  72. </group>
  73. <footer>
  74. <button
  75. name="button_export_pdf"
  76. string="Export PDF"
  77. type="object"
  78. default_focus="1"
  79. class="oe_highlight"
  80. />
  81. or
  82. <button string="Cancel" class="oe_link" special="cancel" />
  83. </footer>
  84. </form>
  85. </field>
  86. </record>
  87. <record id="outstanding_statement_wizard_view" model="ir.ui.view">
  88. <field name="name">Outstanding Statement Wizard</field>
  89. <field name="model">outstanding.statement.wizard</field>
  90. <field name="inherit_id" ref="partner_statement.statement_common_view" />
  91. <field name="mode">primary</field>
  92. <field name="arch" type="xml">
  93. <xpath expr="//div[@name='info']/span" position="before">
  94. <span
  95. class="o_form_label"
  96. >The outstanding statement provides details of all partner's outstanding
  97. receivables and payables up to a particular date. This includes all unpaid invoices, unclaimed
  98. refunds and outstanding payments. The list is displayed in chronological order and is
  99. split by currencies.
  100. </span>
  101. <br />
  102. <br />
  103. </xpath>
  104. </field>
  105. </record>
  106. <record id="activity_statement_wizard_view" model="ir.ui.view">
  107. <field name="name">Activity Statement Wizard</field>
  108. <field name="model">activity.statement.wizard</field>
  109. <field name="inherit_id" ref="partner_statement.statement_common_view" />
  110. <field name="mode">primary</field>
  111. <field name="arch" type="xml">
  112. <xpath expr="//div[@name='info']/span" position="before">
  113. <span
  114. class="o_form_label"
  115. >The activity statement provides details of all activity on
  116. a partner's receivables and payables between two selected dates. This includes all invoices,
  117. refunds and payments. Any outstanding balance dated prior to the chosen statement
  118. period will appear as a forward balance at the top of the statement. The list is
  119. displayed in chronological order and is split by currencies.
  120. </span>
  121. <br />
  122. <br />
  123. </xpath>
  124. <xpath expr="//field[@name='date_end']" position="before">
  125. <field name="date_start" />
  126. </xpath>
  127. </field>
  128. </record>
  129. </odoo>