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.

43 lines
1.5 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_case_form_view_leads" model="ir.ui.view">
  8. <field name="name">crm_phone.crm_lead.form</field>
  9. <field name="model">crm.lead</field>
  10. <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
  11. <field name="arch" type="xml">
  12. <div name="button_box" position="inside">
  13. <button class="oe_inline oe_stat_button" type="action"
  14. name="%(crm_phone.crm_phonecall_action)d"
  15. icon="fa-phone"
  16. context="{'search_default_opportunity_id': active_id}">
  17. <field string="Calls" name="phonecall_count" widget="statinfo"/>
  18. </button>
  19. </div>
  20. </field>
  21. </record>
  22. <record id="crm_case_form_view_oppor" model="ir.ui.view">
  23. <field name="name">crm_phone.case.view_opportuniy.form</field>
  24. <field name="model">crm.lead</field>
  25. <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
  26. <field name="arch" type="xml">
  27. <div name="button_box" position="inside">
  28. <button class="oe_inline oe_stat_button" type="action"
  29. name="%(crm_phone.crm_phonecall_action)d"
  30. icon="fa-phone"
  31. context="{'search_default_opportunity_id': active_id}">
  32. <field string="Calls" name="phonecall_count" widget="statinfo"/>
  33. </button>
  34. </div>
  35. </field>
  36. </record>
  37. </odoo>