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.

113 lines
4.2 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <odoo>
  3. <!-- OPEN ITEMS -->
  4. <record id="open_items_wizard" model="ir.ui.view">
  5. <field name="name">Open Items</field>
  6. <field name="model">open.items.report.wizard</field>
  7. <field name="arch" type="xml">
  8. <form>
  9. <group name="main_info">
  10. <field
  11. name="company_id"
  12. options="{'no_create': True}"
  13. groups="base.group_multi_company"
  14. />
  15. </group>
  16. <group name="filters">
  17. <group name="date_range">
  18. <field name="date_at" />
  19. <field name="date_from" />
  20. </group>
  21. <group name="other_filters">
  22. <field name="target_move" widget="radio" />
  23. <field name="hide_account_at_0" />
  24. <field name="foreign_currency" />
  25. </group>
  26. </group>
  27. <group name="partner_filter" col="1">
  28. <label for="partner_ids" />
  29. <field
  30. name="partner_ids"
  31. nolabel="1"
  32. widget="many2many_tags"
  33. options="{'no_create': True}"
  34. />
  35. </group>
  36. <group name="account_filter" col="4">
  37. <field name="receivable_accounts_only" />
  38. <field name="payable_accounts_only" />
  39. <label for="account_code_from" string="From Code" />
  40. <div>
  41. <div class="o_row">
  42. <field
  43. name="account_code_from"
  44. class="oe_inline"
  45. options="{'no_create': True}"
  46. />
  47. <span class="oe_inline">
  48. To
  49. </span>
  50. <field
  51. name="account_code_to"
  52. class="oe_inline"
  53. options="{'no_create': True}"
  54. />
  55. </div>
  56. </div>
  57. <field
  58. name="account_ids"
  59. nolabel="1"
  60. widget="many2many_tags"
  61. options="{'no_create': True}"
  62. colspan="4"
  63. />
  64. </group>
  65. <footer>
  66. <button
  67. name="button_export_html"
  68. string="View"
  69. type="object"
  70. default_focus="1"
  71. class="oe_highlight"
  72. />
  73. or
  74. <button
  75. name="button_export_pdf"
  76. string="Export PDF"
  77. type="object"
  78. />
  79. or
  80. <button
  81. name="button_export_xlsx"
  82. string="Export XLSX"
  83. type="object"
  84. />
  85. or
  86. <button string="Cancel" class="oe_link" special="cancel" />
  87. </footer>
  88. </form>
  89. </field>
  90. </record>
  91. <act_window
  92. id="action_open_items_wizard"
  93. name="Open Items"
  94. res_model="open.items.report.wizard"
  95. view_mode="form"
  96. view_id="open_items_wizard"
  97. target="new"
  98. />
  99. <!--Add to res.partner action-->
  100. <act_window
  101. id="act_action_open_items_wizard_partner_relation"
  102. name="Open Items Partner"
  103. res_model="open.items.report.wizard"
  104. binding_model="res.partner"
  105. view_mode="form"
  106. context="{
  107. 'default_receivable_accounts_only':1,
  108. 'default_payable_accounts_only':1,
  109. }"
  110. groups="account.group_account_manager"
  111. target="new"
  112. />
  113. </odoo>