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.

101 lines
4.8 KiB

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