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.

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