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.

38 lines
1.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2012 Akretion (http://www.akretion.com)
  4. @author: Alexis de Lattre <alexis.delattre@akretion.com>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data>
  9. <!-- Add button on the "Get partner from incoming phone call view" -->
  10. <record id="asterisk_click2dial_crm_open_calling_partner_view" model="ir.ui.view">
  11. <field name="name">asterisk_click2dial_crm.open_calling_partner.view</field>
  12. <field name="model">wizard.open.calling.partner</field>
  13. <field name="inherit_id" ref="asterisk_click2dial.view_open_calling_partner"/>
  14. <field name="type">form</field>
  15. <field name="arch" type="xml">
  16. <button name="open_invoices" position="after">
  17. <button name="create_incoming_phonecall" icon="gtk-new" string="Create call in CRM" type="object" />
  18. </button>
  19. <!-- We enlarge the small original 'Cancel' button -->
  20. <xpath expr="/form/group/button[@name='open_partner']/../button[@special='cancel']" position="attributes">
  21. <attribute name="colspan">4</attribute>
  22. </xpath>
  23. </field>
  24. </record>
  25. <!-- Move "Open calling partner" menu entry to "Phone calls" menu -->
  26. <delete model="ir.ui.menu" id="asterisk_click2dial.menu_open_calling_partner_sales" />
  27. <menuitem id="menu_open_calling_partner_phone"
  28. parent="crm.menu_crm_case_phone"
  29. action="asterisk_click2dial.action_open_calling_partner"
  30. sequence="1" />
  31. </data>
  32. </openerp>