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.

29 lines
1016 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2016-2018 Akretion France
  4. @author: Alexis de Lattre <alexis.delattre@akretion.com>
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  6. -->
  7. <odoo>
  8. <record id="view_partner_form" model="ir.ui.view">
  9. <field name="name">phonecall.res.partner.form</field>
  10. <field name="model">res.partner</field>
  11. <field name="inherit_id" ref="base.view_partner_form"/>
  12. <field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman')), (4, ref('base.group_partner_manager'))]"/>
  13. <field name="arch" type="xml">
  14. <div name="button_box" position="inside">
  15. <button class="oe_inline oe_stat_button" type="action"
  16. name="%(crm_phone.crm_phonecall_action)d"
  17. icon="fa-phone"
  18. context="{'search_default_partner_id': active_id}">
  19. <field string="Calls" name="phonecall_count" widget="statinfo"/>
  20. </button>
  21. </div>
  22. </field>
  23. </record>
  24. </odoo>