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.

160 lines
6.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. © 2014-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <data>
  8. <record id="crm_phonecall_form" model="ir.ui.view">
  9. <field name="name">crm.phonecall.form</field>
  10. <field name="model">crm.phonecall</field>
  11. <field name="arch" type="xml">
  12. <form string="Phone Call">
  13. <header>
  14. <field name="state" widget="statusbar" clickable="True"/>
  15. </header>
  16. <sheet>
  17. <div class="oe_button_box" name="button_box">
  18. <button class="oe_stat_button" type="object"
  19. name="schedule_another_call" icon="fa-phone"
  20. string="Schedule Another Call"/>
  21. </div>
  22. <div class="oe_title">
  23. <div class="oe_edit_only">
  24. <label for="name"/>
  25. </div>
  26. <h1><field name="name"/></h1>
  27. </div>
  28. <group name="main">
  29. <group name="left">
  30. <field name="date"/>
  31. <field name="user_id"/>
  32. <field name="partner_id"/>
  33. <field name="partner_phone" widget="phone"/>
  34. <field name="partner_mobile" widget="phone"/>
  35. <field name="opportunity_id"/>
  36. </group>
  37. <group name="right">
  38. <field name="direction"/>
  39. <field name="team_id" groups="base.group_multi_salesteams"/>
  40. <field name="company_id" groups="base.group_multi_company"/>
  41. <field name="priority" widget="priority"/>
  42. </group>
  43. </group>
  44. <group name="description" string="Description">
  45. <field name="description" nolabel="1"
  46. placeholder="Summary of the phone call..."/>
  47. </group>
  48. </sheet>
  49. <div class="oe_chatter">
  50. <field name="message_follower_ids" widget="mail_followers"/>
  51. <field name="message_ids" widget="mail_thread"/>
  52. </div>
  53. </form>
  54. </field>
  55. </record>
  56. <record id="crm_phonecall_tree" model="ir.ui.view">
  57. <field name="name">crm.phonecall.tree</field>
  58. <field name="model">crm.phonecall</field>
  59. <field name="arch" type="xml">
  60. <tree string="Phone Calls" editable="top">
  61. <field name="date"/>
  62. <field name="name"/>
  63. <field name="partner_id"/>
  64. <field name="opportunity_id"/>
  65. <field name="user_id"/>
  66. <field name="team_id" groups="base.group_multi_salesteams"/>
  67. <field name="direction"/>
  68. <field name="state"/>
  69. <button name="schedule_another_call" type="object"
  70. string="Schedule Another Call" icon="terp-call-start"/>
  71. </tree>
  72. </field>
  73. </record>
  74. <record id="crm_phonecall_calendar" model="ir.ui.view">
  75. <field name="name">crm.phonecall.calendar</field>
  76. <field name="model">crm.phonecall</field>
  77. <field name="arch" type="xml">
  78. <calendar string="Phone Calls" date_start="date" color="user_id">
  79. <field name="name"/>
  80. <field name="partner_id"/>
  81. </calendar>
  82. </field>
  83. </record>
  84. <record id="crm_phonecall_search" model="ir.ui.view">
  85. <field name="name">crm.phonecall.search</field>
  86. <field name="model">crm.phonecall</field>
  87. <field name="arch" type="xml">
  88. <search string="Search Phone Calls">
  89. <field name="name" string="Phonecalls"/>
  90. <field name="date"/>
  91. <field name="user_id"/>
  92. <field name="partner_id" operator="child_of"/>
  93. <field name="opportunity_id"/>
  94. <field name="team_id" groups="base.group_multi_salesteams"/>
  95. <filter string="My Phonecalls" domain="[('user_id', '=', uid)]"/>
  96. <filter string="My Team" domain="[('section_id.user_id', '=', uid)]"/>
  97. <filter string="Unassigned" domain="[('user_id', '=', False)]"/>
  98. <separator/>
  99. <filter string="To Do" name="open" domain="[('state', '=', 'open')]"/>
  100. <filter string="Held" name="done" domain="[('state', '=', 'done')]"/>
  101. <separator/>
  102. <filter string="Inbound" domain="[('direction', '=', 'inbound')]"/>
  103. <filter string="Outbound" domain="[('direction', '=', 'outbound')]"/>
  104. <group string="Group By" name="groupby">
  105. <filter name="partner_groupby" string="Partner"
  106. context="{'group_by': 'partner_id'}"/>
  107. <filter name="user_groupby" string="Responsible"
  108. context="{'group_by': 'user_id'}"/>
  109. <filter name="team_groupby" string="Team"
  110. context="{'group_by': 'team_id'}"
  111. groups="base.group_multi_salesteams"/>
  112. <filter name="date_groupby" string="Month"
  113. context="{'group_by': 'date'}"/>
  114. <filter name="state_groupby" string="State"
  115. context="{'group_by': 'state'}"/>
  116. <filter name="direction" string="Direction"
  117. context="{'group_by': 'direction'}"/>
  118. </group>
  119. </search>
  120. </field>
  121. </record>
  122. <menuitem id="crm_phonecall_menu" name="Phone Calls"
  123. parent="base.menu_base_partner" sequence="7" groups="base.group_sale_salesman"/>
  124. <record id="crm_phonecall_action" model="ir.actions.act_window">
  125. <field name="name">Phone Calls</field>
  126. <field name="res_model">crm.phonecall</field>
  127. <field name="view_mode">tree,calendar,form</field>
  128. </record>
  129. <record id="crm_phonecall_action_done" model="ir.actions.act_window">
  130. <field name="name">Logged Calls</field>
  131. <field name="res_model">crm.phonecall</field>
  132. <field name="view_mode">tree,calendar,form</field>
  133. <field name="context">{'search_default_done': 1, 'default_state': 'done'}</field>
  134. </record>
  135. <menuitem id="crm_phonecall_menu_done" action="crm_phonecall_action_done"
  136. parent="crm_phonecall_menu" sequence="10"/>
  137. <record id="crm_phonecall_action_open" model="ir.actions.act_window">
  138. <field name="name">Scheduled Calls</field>
  139. <field name="res_model">crm.phonecall</field>
  140. <field name="view_mode">tree,calendar,form</field>
  141. <field name="context">{'search_default_open': 1, 'default_state': 'open'}</field>
  142. </record>
  143. <menuitem id="crm_phonecall_menu_open" action="crm_phonecall_action_open"
  144. parent="crm_phonecall_menu" sequence="20"/>
  145. </data>
  146. </odoo>