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.

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