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.

76 lines
3.1 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 name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
  11. </group>
  12. <group name="filters">
  13. <group name="date_range">
  14. <field name="date_at"/>
  15. <field name="date_from"/>
  16. </group>
  17. <group name="other_filters">
  18. <field name="target_move" widget="radio"/>
  19. <field name="hide_account_at_0"/>
  20. <field name="foreign_currency"/>
  21. </group>
  22. </group>
  23. <group name="partner_filter" col="1">
  24. <label for="partner_ids"/>
  25. <field name="partner_ids"
  26. nolabel="1"
  27. widget="many2many_tags"
  28. options="{'no_create': True}"/>
  29. </group>
  30. <group name="account_filter" col="4">
  31. <field name="receivable_accounts_only"/>
  32. <field name="payable_accounts_only"/>
  33. <field name="account_ids"
  34. nolabel="1"
  35. widget="many2many_tags"
  36. options="{'no_create': True}"
  37. colspan="4"/>
  38. </group>
  39. <footer>
  40. <button name="button_export_html" string="View"
  41. type="object" default_focus="1" class="oe_highlight"/>
  42. or
  43. <button name="button_export_pdf" string="Export PDF" type="object"/>
  44. or
  45. <button name="button_export_xlsx" string="Export XLSX" type="object"/>
  46. or
  47. <button string="Cancel" class="oe_link" special="cancel" />
  48. </footer>
  49. </form>
  50. </field>
  51. </record>
  52. <act_window id="action_open_items_wizard"
  53. name="Open Items"
  54. res_model="open.items.report.wizard"
  55. view_type="form"
  56. view_mode="form"
  57. view_id="open_items_wizard"
  58. target="new" />
  59. <!--Add to res.partner action-->
  60. <act_window id="act_action_open_items_wizard_partner_relation"
  61. name="Open Items Partner"
  62. res_model="open.items.report.wizard"
  63. src_model="res.partner"
  64. view_mode="form"
  65. context="{
  66. 'default_receivable_accounts_only':1,
  67. 'default_payable_accounts_only':1,
  68. }"
  69. groups="account.group_account_manager"
  70. key2="client_action_multi"
  71. target="new" />
  72. </odoo>