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.

114 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="show_partner_details" />
  24. <field name="hide_account_at_0" />
  25. <field name="foreign_currency" />
  26. </group>
  27. </group>
  28. <group name="partner_filter" col="1">
  29. <label for="partner_ids" />
  30. <field
  31. name="partner_ids"
  32. nolabel="1"
  33. widget="many2many_tags"
  34. options="{'no_create': True}"
  35. />
  36. </group>
  37. <group name="account_filter" col="4">
  38. <field name="receivable_accounts_only" />
  39. <field name="payable_accounts_only" />
  40. <label for="account_code_from" string="From Code" />
  41. <div>
  42. <div class="o_row">
  43. <field
  44. name="account_code_from"
  45. class="oe_inline"
  46. options="{'no_create': True}"
  47. />
  48. <span class="oe_inline">
  49. To
  50. </span>
  51. <field
  52. name="account_code_to"
  53. class="oe_inline"
  54. options="{'no_create': True}"
  55. />
  56. </div>
  57. </div>
  58. <field
  59. name="account_ids"
  60. nolabel="1"
  61. widget="many2many_tags"
  62. options="{'no_create': True}"
  63. colspan="4"
  64. />
  65. </group>
  66. <footer>
  67. <button
  68. name="button_export_html"
  69. string="View"
  70. type="object"
  71. default_focus="1"
  72. class="oe_highlight"
  73. />
  74. or
  75. <button
  76. name="button_export_pdf"
  77. string="Export PDF"
  78. type="object"
  79. />
  80. or
  81. <button
  82. name="button_export_xlsx"
  83. string="Export XLSX"
  84. type="object"
  85. />
  86. or
  87. <button string="Cancel" class="oe_link" special="cancel" />
  88. </footer>
  89. </form>
  90. </field>
  91. </record>
  92. <act_window
  93. id="action_open_items_wizard"
  94. name="Open Items"
  95. res_model="open.items.report.wizard"
  96. view_mode="form"
  97. view_id="open_items_wizard"
  98. target="new"
  99. />
  100. <!--Add to res.partner action-->
  101. <act_window
  102. id="act_action_open_items_wizard_partner_relation"
  103. name="Open Items Partner"
  104. res_model="open.items.report.wizard"
  105. binding_model="res.partner"
  106. view_mode="form"
  107. context="{
  108. 'default_receivable_accounts_only':1,
  109. 'default_payable_accounts_only':1,
  110. }"
  111. groups="account.group_account_manager"
  112. target="new"
  113. />
  114. </odoo>