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.

47 lines
1.6 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. <sheet>
  22. <group col="2" colspan="2">
  23. <field name="name" colspan="2"/>
  24. <newline/>
  25. <field name="description" colspan="2"/>
  26. </group>
  27. </sheet>
  28. </form>
  29. </field>
  30. </record>
  31. <record model="ir.actions.act_window" id="open_category_list">
  32. <field name="name">Categories</field>
  33. <field name="res_model">kpi.category</field>
  34. <field name="view_type">form</field>
  35. <field name="view_mode">tree,form</field>
  36. <field name="view_id" ref="view_kpi_category_tree"/>
  37. </record>
  38. </data>
  39. </odoo>