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.

54 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_crm_industry_form">
  5. <field name="name">Industry</field>
  6. <field name="model">res.partner.category.industry</field>
  7. <field name="arch" type="xml">
  8. <form string="Industry Sector" version="7.0">
  9. <sheet>
  10. <label for="name" class="oe_edit_only" />
  11. <h1>
  12. <field name="name" />
  13. </h1>
  14. <group>
  15. <group>
  16. <field name="code" />
  17. <field name="active" />
  18. </group>
  19. <group>
  20. <field name="parent_id" />
  21. </group>
  22. </group>
  23. </sheet>
  24. </form>
  25. </field>
  26. </record>
  27. <record model="ir.ui.view" id="view_crm_industry_tree">
  28. <field name="name">Industry</field>
  29. <field name="model">res.partner.category.industry</field>
  30. <field name="arch" type="xml">
  31. <tree string="Industry Sectors">
  32. <field name="complete_name" />
  33. <field name="code" />
  34. </tree>
  35. </field>
  36. </record>
  37. <record model="ir.actions.act_window" id="action_crm_industry">
  38. <field name="name">Industry Sectors</field>
  39. <field name="res_model">res.partner.category.industry</field>
  40. <field name="view_type">form</field>
  41. <field name="view_mode">tree,form</field>
  42. <field name="view_id" ref="view_crm_industry_tree" />
  43. </record>
  44. <menuitem id="menu_crm_config_industry" name="Industry Sectors"
  45. parent="base.menu_config_address_book" action="action_crm_industry"
  46. sequence="20" groups="base.group_no_one" />
  47. </data>
  48. </openerp>