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.

97 lines
3.4 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. <field
  40. name="account_ids"
  41. nolabel="1"
  42. widget="many2many_tags"
  43. options="{'no_create': True}"
  44. colspan="4"
  45. />
  46. </group>
  47. <footer>
  48. <button
  49. name="button_export_html"
  50. string="View"
  51. type="object"
  52. default_focus="1"
  53. class="oe_highlight"
  54. />
  55. or
  56. <button
  57. name="button_export_pdf"
  58. string="Export PDF"
  59. type="object"
  60. />
  61. or
  62. <button
  63. name="button_export_xlsx"
  64. string="Export XLSX"
  65. type="object"
  66. />
  67. or
  68. <button string="Cancel" class="oe_link" special="cancel" />
  69. </footer>
  70. </form>
  71. </field>
  72. </record>
  73. <act_window
  74. id="action_open_items_wizard"
  75. name="Open Items"
  76. res_model="open.items.report.wizard"
  77. view_type="form"
  78. view_mode="form"
  79. view_id="open_items_wizard"
  80. target="new"
  81. />
  82. <!--Add to res.partner action-->
  83. <act_window
  84. id="act_action_open_items_wizard_partner_relation"
  85. name="Open Items Partner"
  86. res_model="open.items.report.wizard"
  87. src_model="res.partner"
  88. view_mode="form"
  89. context="{
  90. 'default_receivable_accounts_only':1,
  91. 'default_payable_accounts_only':1,
  92. }"
  93. groups="account.group_account_manager"
  94. key2="client_action_multi"
  95. target="new"
  96. />
  97. </odoo>