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.

28 lines
988 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. © 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="view_partner_form" model="ir.ui.view">
  8. <field name="name">phonecall.res.partner.form</field>
  9. <field name="model">res.partner</field>
  10. <field name="inherit_id" ref="base.view_partner_form"/>
  11. <field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman')), (4, ref('base.group_partner_manager'))]"/>
  12. <field name="arch" type="xml">
  13. <div name="button_box" position="inside">
  14. <button class="oe_inline oe_stat_button" type="action"
  15. name="%(crm_phone.crm_phonecall_action)d"
  16. icon="fa-phone"
  17. context="{'search_default_partner_id': active_id}">
  18. <field string="Calls" name="phonecall_count" widget="statinfo"/>
  19. </button>
  20. </div>
  21. </field>
  22. </record>
  23. </odoo>