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.

70 lines
2.7 KiB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="mail_activity_view_form_popup" model="ir.ui.view">
  4. <field name="name">mail.activity.view.form.popup</field>
  5. <field name="model">mail.activity</field>
  6. <field name="inherit_id" ref="mail.mail_activity_view_form_popup"/>
  7. <field name="arch" type="xml">
  8. <field name="user_id" position="after">
  9. <field name="team_id" options="{'no_create': True, 'no_open': True}"/>
  10. </field>
  11. </field>
  12. </record>
  13. <record id="mail_activity_view_tree" model="ir.ui.view">
  14. <field name="name">mail.activity.view.tree</field>
  15. <field name="model">mail.activity</field>
  16. <field name="inherit_id" ref="mail.mail_activity_view_tree"/>
  17. <field name="arch" type="xml">
  18. <field name="date_deadline" position="after">
  19. <field name="team_id"/>
  20. </field>
  21. </field>
  22. </record>
  23. <record id="mail_activity_view_form_board" model="ir.ui.view">
  24. <field name="name">mail.activity.view.form</field>
  25. <field name="model">mail.activity</field>
  26. <field name="inherit_id" ref="mail_activity_board.mail_activity_view_form_board"/>
  27. <field name="arch" type="xml">
  28. <field name="user_id" position="after">
  29. <field name="team_id"/>
  30. </field>
  31. </field>
  32. </record>
  33. <record id="mail_activity_view_kanban" model="ir.ui.view">
  34. <field name="name">mail.activity.boards.view.kanban</field>
  35. <field name="model">mail.activity</field>
  36. <field name="inherit_id" ref="mail_activity_board.mail_activity_view_kanban"/>
  37. <field name="arch" type="xml">
  38. <field name="user_id" position="after">
  39. <field name="team_id"/>
  40. </field>
  41. <xpath expr="//div[hasclass('oe_kanban_content')]" position="inside">
  42. <br/>
  43. <div>
  44. Team: <field name="team_id"/>
  45. </div>
  46. </xpath>
  47. </field>
  48. </record>
  49. <!-- SEARCH VIEW -->
  50. <record id="mail_activity_view_search" model="ir.ui.view">
  51. <field name="name">mail.activity.boards.view.search</field>
  52. <field name="model">mail.activity</field>
  53. <field name="inherit_id" ref="mail_activity_board.mail_activity_view_search"/>
  54. <field name="priority" eval="2"/>
  55. <field name="arch" type="xml">
  56. <xpath expr='//field[@name="user_id"]' position='before'>
  57. <field name="team_id"/>
  58. </xpath>
  59. <group position='inside'>
  60. <filter name='team' string="Team" context="{'group_by': 'team_id'}"/>
  61. </group>
  62. </field>
  63. </record>
  64. </odoo>