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.

67 lines
2.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2019-Today: GRAP (<http://www.grap.coop/>)
  4. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record id="view_ir_module_module_form" model="ir.ui.view">
  9. <field name="model">ir.module.module</field>
  10. <field name="inherit_id" ref="base.module_form"/>
  11. <field name="arch" type="xml">
  12. <xpath expr="//field[@name='state']/.." position="after">
  13. <button name="button_analyze_code" states="installed" string="Refresh Code Analysis" type="object" class="btn btn-primary"/>
  14. <group string="Code Size" col="4">
  15. <field name="python_code_qty"/>
  16. <field name="xml_code_qty"/>
  17. <field name="js_code_qty"/>
  18. <field name="css_code_qty"/>
  19. </group>
  20. <group string="Type and Authors">
  21. <field name="author_ids" widget="many2many_tags"/>
  22. <field name="module_type_id"/>
  23. </group>
  24. </xpath>
  25. </field>
  26. </record>
  27. <record id="view_ir_module_module_pivot" model="ir.ui.view">
  28. <field name="model">ir.module.module</field>
  29. <field name="arch" type="xml">
  30. <pivot>
  31. <field name="module_type_id" type="row"/>
  32. <field name="python_code_qty" type="measure"/>
  33. <field name="xml_code_qty" type="measure"/>
  34. <field name="js_code_qty" type="measure"/>
  35. <field name="css_code_qty" type="measure"/>
  36. </pivot>
  37. </field>
  38. </record>
  39. <record id="view_ir_module_module_graph" model="ir.ui.view">
  40. <field name="model">ir.module.module</field>
  41. <field name="arch" type="xml">
  42. <graph type="pie">
  43. <field name="module_type_id" type="row"/>
  44. </graph>
  45. </field>
  46. </record>
  47. <record id="action_ir_module_module_by_type" model="ir.actions.act_window">
  48. <field name="name">Installed Modules by Types</field>
  49. <field name="type">ir.actions.act_window</field>
  50. <field name="res_model">ir.module.module</field>
  51. <field name="domain">[('state', '=', 'installed')]</field>
  52. <field name="view_type">form</field>
  53. <field name="view_mode">pivot,graph</field>
  54. </record>
  55. <menuitem id="menu_module_by_type"
  56. parent="menu_module_analysis_reporting" sequence="5"
  57. action="action_ir_module_module_by_type"
  58. groups="base.group_no_one"/>
  59. </odoo>