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.

45 lines
1.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2012 - Now Savoir-faire Linux <https://www.savoirfairelinux.com/>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <data>
  6. <!-- Categories -->
  7. <record id="view_kpi_category_tree" model="ir.ui.view">
  8. <field name="name">kpi.category.tree</field>
  9. <field name="model">kpi.category</field>
  10. <field name="arch" type="xml">
  11. <tree string="Categories">
  12. <field name="name"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record id="view_kpi_category_form" model="ir.ui.view">
  17. <field name="name">kpi.category.form</field>
  18. <field name="model">kpi.category</field>
  19. <field name="arch" type="xml">
  20. <form string="Category">
  21. <group col="2" colspan="2">
  22. <field name="name" colspan="2"/>
  23. <newline/>
  24. <field name="description" colspan="2"/>
  25. </group>
  26. </form>
  27. </field>
  28. </record>
  29. <record model="ir.actions.act_window" id="open_category_list">
  30. <field name="name">Categories</field>
  31. <field name="res_model">kpi.category</field>
  32. <field name="view_type">form</field>
  33. <field name="view_mode">tree,form</field>
  34. <field name="view_id" ref="view_kpi_category_tree"/>
  35. </record>
  36. </data>
  37. </odoo>