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.

98 lines
3.5 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <odoo>
  3. <!--
  4. VIEWS
  5. -->
  6. <!-- FORM VIEW -->
  7. <record id="mail_activity_team_view_form" model="ir.ui.view">
  8. <field name="name">mail.activity.team.view.form</field>
  9. <field name="model">mail.activity.team</field>
  10. <field name="arch" type="xml">
  11. <form string="Activity Team">
  12. <header>
  13. <field name="count_missing_activities" invisible="1"/>
  14. <button name="assign_team_to_unassigned_activities" string="Assign to missing activities"
  15. type="object" class="oe_highlight"
  16. groups="base.group_no_one"
  17. attrs="{'invisible': [('count_missing_activities', '=', 0)]}"/>
  18. </header>
  19. <sheet string="Activity Team">
  20. <div class="oe_button_box" name="button_box">
  21. <button name="toggle_active" type="object"
  22. class="oe_stat_button" icon="fa-archive">
  23. <field name="active" widget="boolean_button"
  24. options='{"terminology": "archive"}'/></button>
  25. </div>
  26. <group>
  27. <group name="base">
  28. <field name="name"/>
  29. <field name="user_id"/>
  30. </group>
  31. <group name="models">
  32. <field name="res_model_ids" widget="many2many_tags"
  33. options="{'no_create': True, 'no_open': True}"/>
  34. </group>
  35. </group>
  36. <notebook>
  37. <page name="members" string="Members">
  38. <field name="member_ids" nolabel="1"/>
  39. </page>
  40. </notebook>
  41. </sheet>
  42. </form>
  43. </field>
  44. </record>
  45. <!-- TREE VIEW -->
  46. <record id="mail_activity_team_view_tree" model="ir.ui.view">
  47. <field name="name">mail.activity.team.view.tree</field>
  48. <field name="model">mail.activity.team</field>
  49. <field name="arch" type="xml">
  50. <tree>
  51. <field name="name"/>
  52. <field name="res_model_ids" widget="many2many_tags"/>
  53. </tree>
  54. </field>
  55. </record>
  56. <!-- SEARCH VIEW -->
  57. <record id="mail_activity_team_view_search" model="ir.ui.view">
  58. <field name="name">mail.activity.team.view.search</field>
  59. <field name="model">mail.activity.team</field>
  60. <field name="arch" type="xml">
  61. <search>
  62. <field name="name"/>
  63. <field name="res_model_ids"/>
  64. <field name="member_ids"/>
  65. </search>
  66. </field>
  67. </record>
  68. <!--
  69. ACTION
  70. -->
  71. <record model="ir.actions.act_window" id="mail_activity_team_action">
  72. <field name="name">Activity Teams</field>
  73. <field name="res_model">mail.activity.team</field>
  74. <field name="view_type">form</field>
  75. <field name="view_mode">tree,form</field>
  76. <field name="domain">[]</field>
  77. <field name="context">{}</field>
  78. <field name="search_view_id" ref="mail_activity_team_view_search"/>
  79. </record>
  80. <!--
  81. Menus
  82. -->
  83. <menuitem
  84. id="menu_mail_activity_team"
  85. name="Activity Teams"
  86. parent="base.menu_email"
  87. action="mail_activity_team_action"/>
  88. </odoo>