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.

39 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2012-2014 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 option on user form view -->
  10. <record id="view_users_form" model="ir.ui.view">
  11. <field name="name">asterisk.crm.res.users.form</field>
  12. <field name="model">res.users</field>
  13. <field name="inherit_id" ref="base_phone.view_users_form"/>
  14. <field name="arch" type="xml">
  15. <!-- Phone tab is already visible thanks to asterisk_click2dial -->
  16. <group name="phone-preferences" position="inside">
  17. <field name="context_propose_creation_crm_call"/>
  18. </group>
  19. </field>
  20. </record>
  21. <record id="view_users_form_simple_modif" model="ir.ui.view">
  22. <field name="name">asterisk.crm.preferences.option.view</field>
  23. <field name="model">res.users</field>
  24. <field name="inherit_id" ref="base_phone.view_users_form_simple_modif" />
  25. <field name="arch" type="xml">
  26. <group name="phone" position="inside">
  27. <field name="context_propose_creation_crm_call" readonly="0"/>
  28. </group>
  29. <group name="phone" position="attributes">
  30. <attribute name="invisible">0</attribute>
  31. </group>
  32. </field>
  33. </record>
  34. </data>
  35. </openerp>