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.

90 lines
3.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2017 LasLabs Inc.
  3. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
  4. <odoo>
  5. <record id="export_view_form" model="ir.ui.view">
  6. <field name="name">Export Log</field>
  7. <field name="model">export.event</field>
  8. <field name="arch" type="xml">
  9. <form string="Export Log" create="false">
  10. <sheet>
  11. <group>
  12. <field name="name"/>
  13. <field name="model_id"/>
  14. <field name="user_id"/>
  15. <field name="create_date"
  16. string="Export Date"
  17. readonly="1"/>
  18. </group>
  19. <notebook>
  20. <page string="Exported Fields">
  21. <field name="field_ids"/>
  22. </page>
  23. <page string="Exported Records">
  24. <field name="record_ids"/>
  25. </page>
  26. </notebook>
  27. </sheet>
  28. </form>
  29. </field>
  30. </record>
  31. <record id="export_view_tree" model="ir.ui.view">
  32. <field name="name">Export Logs</field>
  33. <field name="model">export.event</field>
  34. <field name="arch" type="xml">
  35. <tree string="Export Logs" create="false" default_order='create_date desc'>
  36. <field name="model_id"/>
  37. <field name="user_id"/>
  38. <field name="create_date" string="Export Date"/>
  39. </tree>
  40. </field>
  41. </record>
  42. <record id="export_view_search" model="ir.ui.view">
  43. <field name="name">Export Logs Search</field>
  44. <field name="model">export.event</field>
  45. <field name="arch" type="xml">
  46. <search string="Export Logs">
  47. <field name="user_id"/>
  48. <field name="create_date" string="Export Date"/>
  49. <field name="model_id"/>
  50. <field name="field_ids"/>
  51. <field name="record_ids"/>
  52. </search>
  53. </field>
  54. </record>
  55. <record id="export_action_log" model="ir.actions.act_window">
  56. <field name="name">Export Logs</field>
  57. <field name="res_model">export.event</field>
  58. <field name="view_type">form</field>
  59. <field name="view_mode">tree,form</field>
  60. <field name="search_view_id" ref="export_view_search"/>
  61. </record>
  62. <menuitem id="export_category"
  63. name="Data Exports"
  64. parent="base.menu_administration"/>
  65. <menuitem id="export_menu"
  66. name="Export Logs"
  67. sequence="7"
  68. parent="export_category"
  69. action="export_action_log"/>
  70. <template id="assets_backend" inherit_id="web.assets_backend">
  71. <xpath expr=".">
  72. <script type="text/javascript"
  73. src="/base_export_security/static/src/js/base_export_security.js"/>
  74. </xpath>
  75. </template>
  76. <template id="qunit_suite" inherit_id="web.qunit_suite">
  77. <xpath expr="//t[@t-set='head']" position="inside">
  78. <script type="application/javascript"
  79. src="/base_export_security/static/tests/js/base_export_security.js"/>
  80. </xpath>
  81. </template>
  82. </odoo>