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.

68 lines
2.4 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_case_form_view_leads" model="ir.ui.view">
  9. <field name="name">crm_phone.crm_lead.form</field>
  10. <field name="model">crm.lead</field>
  11. <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
  12. <field name="arch" type="xml">
  13. <field name="mobile" position="attributes">
  14. <attribute name="widget">phone</attribute>
  15. </field>
  16. <field name="fax" position="attributes">
  17. <attribute name="widget">fax</attribute>
  18. </field>
  19. <div name="button_box" position="inside">
  20. <button class="oe_inline oe_stat_button" type="action"
  21. name="%(crm_phone.crm_phonecall_action)d"
  22. icon="fa-phone"
  23. context="{'search_default_opportunity_id': active_id}">
  24. <field string="Calls" name="phonecall_count" widget="statinfo"/>
  25. </button>
  26. </div>
  27. </field>
  28. </record>
  29. <record id="crm_case_tree_view_leads" model="ir.ui.view">
  30. <field name="name">crm_phone.crm_lead.tree</field>
  31. <field name="model">crm.lead</field>
  32. <field name="inherit_id" ref="crm.crm_case_tree_view_leads"/>
  33. <field name="arch" type="xml">
  34. <field name="phone" position="attributes">
  35. <attribute name="widget">phone</attribute>
  36. </field>
  37. </field>
  38. </record>
  39. <record id="crm_case_form_view_oppor" model="ir.ui.view">
  40. <field name="name">crm_phone.case.view_opportuniy.form</field>
  41. <field name="model">crm.lead</field>
  42. <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
  43. <field name="arch" type="xml">
  44. <field name="mobile" position="attributes">
  45. <attribute name="widget">phone</attribute>
  46. </field>
  47. <field name="fax" position="attributes">
  48. <attribute name="widget">fax</attribute>
  49. </field>
  50. <div name="button_box" position="inside">
  51. <button class="oe_inline oe_stat_button" type="action"
  52. name="%(crm_phone.crm_phonecall_action)d"
  53. icon="fa-phone"
  54. context="{'search_default_opportunity_id': active_id}">
  55. <field string="Calls" name="phonecall_count" widget="statinfo"/>
  56. </button>
  57. </div>
  58. </field>
  59. </record>
  60. </data>
  61. </odoo>